diff options
author | elijah <elijah@riseup.net> | 2014-03-14 17:45:32 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-03-14 17:45:32 -0700 |
commit | ae2936655c50e369c0150ff4c049cdcf696848a7 (patch) | |
tree | 20d341abf719333b52b9c65db4fae25684fb9c14 /lib/leap_cli/path.rb | |
parent | 2c2125b372bcfc69764f8f2a2ec6a1410f2e0669 (diff) |
added ability to define environment specific provider.json (e.g. provider.production.json)
Diffstat (limited to 'lib/leap_cli/path.rb')
-rw-r--r-- | lib/leap_cli/path.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/leap_cli/path.rb b/lib/leap_cli/path.rb index b705788..cd0e169 100644 --- a/lib/leap_cli/path.rb +++ b/lib/leap_cli/path.rb @@ -72,6 +72,10 @@ module LeapCli; module Path File.exists?(named_path(name, provider_dir)) end + def self.defined?(name) + Leap::Platform.paths[name] + end + def self.relative_path(path, provider_dir=Path.provider) if provider_dir path = named_path(path, provider_dir) |