diff options
author | elijah <elijah@riseup.net> | 2013-02-28 19:50:53 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-28 19:50:53 -0800 |
commit | e9a8318dc42146209e4acecc93c4ff62ab6feb7c (patch) | |
tree | 4fb6cef95626b708e04b6da93c7b0be7f0fe5718 /lib | |
parent | 56a42b9858058473a07f254c49d0bb00dadce2d9 (diff) | |
download | leap_cli-e9a8318dc42146209e4acecc93c4ff62ab6feb7c.tar.gz leap_cli-e9a8318dc42146209e4acecc93c4ff62ab6feb7c.tar.bz2 |
clean up include paths, require newer rake version.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli.rb | 1 | ||||
-rw-r--r-- | lib/leap_cli/load_paths.rb | 15 | ||||
-rw-r--r-- | lib/leap_cli/version.rb | 2 |
3 files changed, 17 insertions, 1 deletions
diff --git a/lib/leap_cli.rb b/lib/leap_cli.rb index 714211a..1921357 100644 --- a/lib/leap_cli.rb +++ b/lib/leap_cli.rb @@ -2,6 +2,7 @@ module LeapCli; end require 'leap_cli/version.rb' require 'leap_cli/requirements.rb' + require 'leap_cli/leapfile.rb' require 'core_ext/hash' require 'core_ext/boolean' diff --git a/lib/leap_cli/load_paths.rb b/lib/leap_cli/load_paths.rb new file mode 100644 index 0000000..265a644 --- /dev/null +++ b/lib/leap_cli/load_paths.rb @@ -0,0 +1,15 @@ +# +# Bundle and rubygems each have their own way of modifying $LOAD_PATH. +# +# We want to make sure that the right paths are loaded, including the +# vendored gems, regardless of how leap is run. +# +# + +require File.expand_path('../version', __FILE__) + +base_leap_dir = File.expand_path('../../..', __FILE__) +LeapCli::LOAD_PATHS.each do |path| + path = File.expand_path(path, base_leap_dir) + $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path) +end
\ No newline at end of file diff --git a/lib/leap_cli/version.rb b/lib/leap_cli/version.rb index fa7ec92..baf3fe9 100644 --- a/lib/leap_cli/version.rb +++ b/lib/leap_cli/version.rb @@ -3,6 +3,6 @@ module LeapCli VERSION = '0.1.6' SUMMARY = 'Command line interface to the LEAP platform' DESCRIPTION = 'The command "leap" can be used to manage a bevy of servers running the LEAP platform from the comfort of your own home.' - REQUIRE_PATHS = ['lib', 'vendor/supply_drop/lib', 'vendor/certificate_authority/lib'] + LOAD_PATHS = ['lib', 'vendor/supply_drop/lib', 'vendor/certificate_authority/lib'] end end |