diff options
| author | elijah <elijah@riseup.net> | 2016-06-21 15:59:27 -0700 | 
|---|---|---|
| committer | elijah <elijah@riseup.net> | 2016-06-21 15:59:27 -0700 | 
| commit | d4ee04322ce642c602269738e45f63b800d78cf7 (patch) | |
| tree | a49bba9f5a34a3d50b0bbe8b325e0172b4a6dd33 /lib/leap_cli/config/environment.rb | |
| parent | 7258edade9422fdfba1311be779d2ba40d2d042c (diff) | |
fix ruby deprecation warnings
Diffstat (limited to 'lib/leap_cli/config/environment.rb')
| -rw-r--r-- | lib/leap_cli/config/environment.rb | 4 | 
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 | 
