summaryrefslogtreecommitdiff
path: root/lib/leap_cli/config/environment.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-06-21 15:59:27 -0700
committerelijah <elijah@riseup.net>2016-06-21 15:59:27 -0700
commitd4ee04322ce642c602269738e45f63b800d78cf7 (patch)
treea49bba9f5a34a3d50b0bbe8b325e0172b4a6dd33 /lib/leap_cli/config/environment.rb
parent7258edade9422fdfba1311be779d2ba40d2d042c (diff)
fix ruby deprecation warnings
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