Browse Source

Set default commands correctly.

Noah Kantrowitz 12 years ago
parent
commit
dd11e8dc77
2 changed files with 2 additions and 2 deletions
  1. 1 1
      providers/rails.rb
  2. 1 1
      providers/unicorn.rb

+ 1 - 1
providers/rails.rb

@@ -20,7 +20,7 @@
 
 action :before_compile do
 
-  new_resource.migration_command ||= "rake db:migrate"
+  new_resource.migration_command "rake db:migrate" if !new_resource.migration_command
 
   new_resource.environment.update({
     "RAILS_ENV" => new_resource.environment_name,

+ 1 - 1
providers/unicorn.rb

@@ -19,7 +19,7 @@
 #
 
 action :before_compile do
-  new_resource.restart_command ||= "/etc/init.d/#{new_resource.id} hup"
+  new_resource.restart_command "/etc/init.d/#{new_resource.id} hup" if !new_resource.restart_command
 end
 
 action :before_deploy do