Skip to content

Commit

Permalink
salt(cask): Fix Layout/ArgumentAlignment offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Feb 1, 2024
1 parent 6773403 commit ad10d49
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Casks/salt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
%w[api master minion syndic].each do |daemon|
plist_file = "/Library/LaunchDaemons/com.saltstack.salt.#{daemon}.plist"
xml, = system_command "plutil",
args: ["-convert", "xml1", "-o", "-", "--", plist_file],
sudo: true
args: ["-convert", "xml1", "-o", "-", "--", plist_file],
sudo: true
xml = Plist.parse_xml(xml)

xml["EnvironmentVariables"] = {} unless xml.key?("EnvironmentVariables")
Expand All @@ -39,14 +39,14 @@
new_plist_file = "/tmp/#{random_str}.#{File.basename(plist_file)}"
File.write(new_plist_file, xml.to_plist)
system_command "plutil",
args: ["-lint", new_plist_file]
args: ["-lint", new_plist_file]

system_command "mv",
args: [new_plist_file, plist_file],
sudo: true
args: [new_plist_file, plist_file],
sudo: true
system_command "chown",
args: ["root:wheel", plist_file],
sudo: true
args: ["root:wheel", plist_file],
sudo: true
end
end

Expand Down

0 comments on commit ad10d49

Please sign in to comment.