Skip to content
Permalink
Browse files

Better if/else/end alignment

  • Loading branch information...
amdprophet committed Dec 9, 2014
1 parent 9be0514 commit 5bd7693a657759b465dcaf50d4eeef090e6630a1
Showing with 12 additions and 8 deletions.
  1. +4 −0 .rubocop.yml
  2. +8 −8 recipes/http.rb
@@ -25,3 +25,7 @@ Style/FileName:
# Don't require UTF8
Style/Encoding:
Enabled: false

# Don't align else/end with if statements that come after =
Lint/EndAlignment:
AlignWith: variable
@@ -23,10 +23,10 @@
package_options = node['uchiwa']['package_options'] || '--force-confdef --force-confnew'

arch = if node['kernel']['machine'] == 'x86_64'
'amd64'
else
'i386'
end
'amd64'
else
'i386'
end

pkg = "uchiwa_#{node['uchiwa']['version']}_#{arch}.deb"
url = "#{node['uchiwa']['http_url']}/#{pkg}"
@@ -43,10 +43,10 @@
package_options = node['uchiwa']['package_options'] || '--nogpgcheck'

arch = if node['kernel']['machine'] == 'i686'
'i386'
else
node['kernel']['machine']
end
'i386'
else
node['kernel']['machine']
end

pkg = "uchiwa-#{node['uchiwa']['version']}.#{arch}.rpm"
url = "#{node['uchiwa']['http_url']}/#{pkg}"

0 comments on commit 5bd7693

Please sign in to comment.
You can’t perform that action at this time.