Skip to content

Loading…

Style #2

Merged
merged 1 commit into from

1 participant

@capoferro
Riot Games member

No description provided.

@capoferro capoferro merged commit 24ec785 into master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2012
  1. @capoferro

    Style

    capoferro committed
Showing with 10 additions and 8 deletions.
  1. +6 −5 attributes/default.rb
  2. +4 −3 recipes/default.rb
View
11 attributes/default.rb
@@ -19,10 +19,11 @@
default['activemq']['mirror'] = "http://apache.mirrors.tds.net"
default['activemq']['version'] = "5.5.1"
-default['activemq']['home'] = if node[:platform] == 'mac_os_x'
- '/usr/local/Cellar'
- else
- "/opt"
- end
+case node[:platform]
+when 'mac_os_x'
+ default['activemq']['home'] = "/usr/local/Cellar"
+else
+ default['activemq']['home'] = "/opt"
+end
default['activemq']['wrapper']['max_memory'] = "512"
default['activemq']['wrapper']['useDedicatedTaskRunner'] = "true"
View
7 recipes/default.rb
@@ -91,8 +91,9 @@
template "#{activemq_home}/bin/#{platform}/wrapper.conf" do
source "wrapper.conf.erb"
mode 0644
- variables(:pidfile => pidfile,
- :platform => platform)
+ variables(
+ :pidfile => pidfile,
+ :platform => platform
+ )
notifies :restart, 'service[activemq]' unless platform == 'macosx'
end
-
Something went wrong with that request. Please try again.