Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sodoku committed Oct 8, 2014
1 parent c510423 commit 4220e2c
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 24 deletions.
12 changes: 1 addition & 11 deletions aptly/attributes/default.rb
Expand Up @@ -4,14 +4,4 @@
default['aptly']['s3_mirror_prefix'] = 'prefix'
default['aptly']['mirror_dir'] = '/tmp/ppa'
default['aptly']['sign_pass'] = 'heythere'
default["aptly"]["gpgkeys"] = [
"66E3A9B7",
"63561DC6",
"5D50B6BA",
"C7917B12",
"06ED541C",
"C3173AA6",
"B6AC7E8C",
"0737E5F5",
"E93F5328"
]
default['aptly']['gpgkeys'] = %w(66E3A9B7 63561DC6 5D50B6BA C7917B12 06ED541C C3173AA6 B6AC7E8C 0737E5F5 E93F5328)
4 changes: 2 additions & 2 deletions aptly/recipes/gpg.rb
@@ -1,7 +1,7 @@
node['aptly']['gpgkeys'].each do |key|
execute "install-key #{key}" do
command "apt-key adv --keyserver keyserver.ubuntu.com --recv #{key}"
only_if {node["lsb"]["codename"] == "trusty" and node["ppa"]["enable_trusty_mirror"]}
only_if { node['lsb']['codename'] == 'trusty' && node['ppa']['enable_trusty_mirror'] }
action :run
end
end
end
3 changes: 1 addition & 2 deletions hhvm-fcgi/attributes/default.rb
Expand Up @@ -2,7 +2,7 @@

default['hhvm-fcgi']['build'] = '' # -nightly, -dbg

if (node["lsb"]["codename"] == "trusty" and node["ppa"]["enable_trusty_mirror"])
if node['lsb']['codename'] == 'trusty' && node['ppa']['enable_trusty_mirror']
default['hhvm-fcgi']['apt']['repo'] = 'http://ppa.ezbib.com/trusty55'
else
default['hhvm-fcgi']['apt'] = {
Expand All @@ -11,7 +11,6 @@
}
end


default['hhvm-fcgi']['boost'] = {
'ppa' => 'ppa:mapnik/boost'
}
Expand Down
1 change: 1 addition & 0 deletions hhvm-fcgi/metadata.rb
Expand Up @@ -7,5 +7,6 @@
recipe 'hhvm-fcgi::default', 'Set-up and start the hhvm fcgi server'
supports 'ubuntu'

depends 'apt'
depends 'aptly'
depends 'easybib'
2 changes: 1 addition & 1 deletion nginx-app/attributes/default.rb
Expand Up @@ -6,7 +6,7 @@
default['nginx-app']['config_dir'] = '/etc/nginx'
default['nginx-app']['conf_file'] = 'easybib.com.conf.erb'

if (node["lsb"]["codename"] == "trusty" and node["ppa"]["enable_trusty_mirror"])
if node['lsb']['codename'] == 'trusty' && node['ppa']['enable_trusty_mirror']
default['ningx-app']['ppa'] = 'http://ppa.ezbib.com/trusty55'
else
default['nginx-app']['ppa'] = 'ppa:easybib/remote-mirrors'
Expand Down
2 changes: 1 addition & 1 deletion nginx-app/recipes/ppa.rb
@@ -1,6 +1,6 @@
include_recipe 'aptly::gpg'

apt_repository "nginx-ppa" do
apt_repository 'nginx-ppa' do
uri node['nginx-app']['ppa']
distribution node['lsb']['codename']
end
2 changes: 1 addition & 1 deletion nodejs/attributes/default.rb
Expand Up @@ -16,7 +16,7 @@
'install_url' => 'https://www.npmjs.org/install.sh'
}

if (node["lsb"]["codename"] == "trusty" and node["ppa"]["enable_trusty_mirror"])
if node['lsb']['codename'] == 'trusty' && node['ppa']['enable_trusty_mirror']
default['nodejs']['ppa'] = 'http://ppa.ezbib.com/trusty55'
else
default['nodejs']['ppa'] = 'ppa:chris-lea/node.js-devel'
Expand Down
2 changes: 1 addition & 1 deletion nodejs/recipes/ppa.rb
@@ -1,6 +1,6 @@
include_recipe 'aptly::gpg'

apt_repository "easiybib-ppa" do
apt_repository 'easiybib-ppa' do
uri node['nodejs']['ppa']
distribution node['lsb']['codename']
end
Expand Down
2 changes: 1 addition & 1 deletion php-fpm/attributes/default.rb
Expand Up @@ -22,7 +22,7 @@

default['php-fpm']['packages'] = 'php5-easybib,php5-easybib-mbstring,php5-easybib-memcache'

if (node["lsb"]["codename"] == "trusty" and node["ppa"]["enable_trusty_mirror"])
if node['lsb']['codename'] == 'trusty' && node['ppa']['enable_trusty_mirror']
default['php-fm']['ppa'] = 'http://ppa.ezbib.com/trusty55'
else
default['php-fm']['ppa'] = 'ppa:easybib/php55'
Expand Down
2 changes: 1 addition & 1 deletion php-fpm/recipes/55.rb
@@ -1,6 +1,6 @@
include_recipe 'aptly::gpg'

apt_repository "easiybib-ppa" do
apt_repository 'easiybib-ppa' do
uri node['php55']['ppa']
distribution node['lsb']['codename']
end
3 changes: 1 addition & 2 deletions redis/attributes/default.rb
Expand Up @@ -19,8 +19,7 @@
'keys_changed' => 0
}

if (node["lsb"]["codename"] == "trusty" and node["ppa"]["enable_trusty_mirror"])
puts "trusty mirror"
if node['lsb']['codename'] == 'trusty' && node['ppa']['enable_trusty_mirror']
default['redis']['ppa'] = 'http://ppa.ezbib.com/trusty55'
else
default['redis']['ppa'] = 'ppa:chris-lea/redis-server'
Expand Down
2 changes: 1 addition & 1 deletion ruby-brightbox/attributes/default.rb
@@ -1,7 +1,7 @@
default['ruby-brightbox'] = {}
default['ruby-brightbox']['version'] = '1.9.1'

if (node["lsb"]["codename"] == "trusty" and node["ppa"]["enable_trusty_mirror"])
if node['lsb']['codename'] == 'trusty' && node['ppa']['enable_trusty_mirror']
default['ruby-brightbox']['ppa'] = 'http://ppa.ezbib.com/trusty55'
else
default['ruby-brightbox']['ppa'] = 'ppa:brightbox/ruby-ng'
Expand Down

0 comments on commit 4220e2c

Please sign in to comment.