From ae2936655c50e369c0150ff4c049cdcf696848a7 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 14 Mar 2014 17:45:32 -0700 Subject: added ability to define environment specific provider.json (e.g. provider.production.json) --- lib/leap_cli/path.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/leap_cli/path.rb') 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) -- cgit v1.2.3