diff options
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) |