From 7818abd6a89a882cabb3d2a14a572308d9e959ff Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 21 Jun 2016 17:38:00 -0700 Subject: minor ruby linting --- bin/puppet_command | 6 +++--- bin/run_tests | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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 diff --git a/bin/run_tests b/bin/run_tests index b6784ed5..b25a419c 100755 --- a/bin/run_tests +++ b/bin/run_tests @@ -459,7 +459,7 @@ end def main # load node data from hiera file - if File.exists?(HIERA_FILE) + if File.exist?(HIERA_FILE) $node = YAML.load_file(HIERA_FILE) else $node = {"services" => [], "dummy" => true} -- cgit v1.2.3