diff options
author | elijah <elijah@riseup.net> | 2016-06-21 17:38:00 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-06-21 17:38:00 -0700 |
commit | 7818abd6a89a882cabb3d2a14a572308d9e959ff (patch) | |
tree | 89927201e4406af2334c4ef97cbe58750426ef3f /bin/puppet_command | |
parent | 3df7a57d866cf1e6eda9bb9e3fe19c7387ec6c1d (diff) |
minor ruby linting
Diffstat (limited to 'bin/puppet_command')
-rwxr-xr-x | bin/puppet_command | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/puppet_command b/bin/puppet_command index eb3cd0b9..a06b4940 100755 --- a/bin/puppet_command +++ b/bin/puppet_command @@ -173,9 +173,9 @@ def platform_version_check! return unless @info["platform"] new_version = @info["platform"].split(' ').first return unless new_version - if File.exists?(SUMMARY_LOG) && File.size(SUMMARY_LOG) != 0 + if File.exist?(SUMMARY_LOG) && File.size(SUMMARY_LOG) != 0 file = SUMMARY_LOG - elsif File.exists?(SUMMARY_LOG_1) && File.size(SUMMARY_LOG_1) != 0 + elsif File.exist?(SUMMARY_LOG_1) && File.size(SUMMARY_LOG_1) != 0 file = SUMMARY_LOG_1 else return @@ -195,7 +195,7 @@ end # Return a ruby object representing the contents of the hiera yaml file. # def hiera_file - unless File.exists?(HIERA_FILE) + unless File.exist?(HIERA_FILE) log("ERROR: hiera file '#{HIERA_FILE}' does not exist.") exit(1) end |