Permalink
Browse files

Style

  • Loading branch information...
1 parent 902ceb9 commit 542ffdd755161820401eaf958491cf55ba3aaa98 @capoferro capoferro committed Apr 3, 2012
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
-

0 comments on commit 542ffdd

Please sign in to comment.