From e8de57c6309daeb5e25e1b0973adb8214255077f Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 27 Jun 2016 14:09:11 -0700 Subject: remove capistrano, switch to sshkit --- lib/leap_cli/bootstrap.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/leap_cli/bootstrap.rb') diff --git a/lib/leap_cli/bootstrap.rb b/lib/leap_cli/bootstrap.rb index 9ccb3dd..bc43115 100644 --- a/lib/leap_cli/bootstrap.rb +++ b/lib/leap_cli/bootstrap.rb @@ -39,6 +39,7 @@ module LeapCli if LeapCli.logger.log_level >= 2 log_version end + add_platform_lib_to_path load_commands(app) load_macros end @@ -193,5 +194,15 @@ module LeapCli end end + # + # makes all the ruby libraries in the leap_platform/lib directory + # available for inclusion. + # + def add_platform_lib_to_path + if Path.platform + path = File.join(Path.platform, 'lib') + $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path) + end + end end end -- cgit v1.2.3