summaryrefslogtreecommitdiff
path: root/lib/leap_cli/config/environment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/config/environment.rb')
-rw-r--r--lib/leap_cli/config/environment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/config/environment.rb b/lib/leap_cli/config/environment.rb
index df4b56c..398fd02 100644
--- a/lib/leap_cli/config/environment.rb
+++ b/lib/leap_cli/config/environment.rb
@@ -106,7 +106,7 @@ module LeapCli; module Config
#
def template(template)
path = Path.named_path([:template_config, template], Path.provider_base)
- if File.exists?(path)
+ if File.exist?(path)
return load_json(path, Config::Object)
else
return nil
@@ -133,7 +133,7 @@ module LeapCli; module Config
end
def load_json(filename, object_class, options={})
- if !File.exists?(filename)
+ if !File.exist?(filename)
return object_class.new(self)
end