Rubocop fixes

This commit is contained in:
Tim Smith
2015-09-24 15:07:56 -07:00
parent 1f7c62f8dc
commit 770e65103f
8 changed files with 33 additions and 24 deletions

View File

@@ -6,13 +6,13 @@ set :path, '/sbin:/usr/local/sbin:$PATH'
def get_family
fam = 'solaris2'
return fam unless File.exist? '/etc/release'
File.open("/etc/release") do |file|
while line = file.gets
case line
when /^\s*(OmniOS)/
fam = 'omnios'
end
File.open('/etc/release') do |file|
while line = file.gets
case line
when /^\s*(OmniOS)/
fam = 'omnios'
end
end
end
fam
end
@@ -24,4 +24,3 @@ def postfix_conf_path
'/etc/postfix'
end
end