Remove version from rake when invoking it via bundle
authorTom Hughes <tom@compton.nu>
Mon, 4 Jul 2016 08:09:29 +0000 (09:09 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 4 Jul 2016 08:09:29 +0000 (09:09 +0100)
cookbooks/web/definitions/rails_port.rb

index 955927a..2fcc1ee 100644 (file)
@@ -234,7 +234,7 @@ define :rails_port, :action => [:create, :enable] do
 
   execute "#{rails_directory}/db/migrate" do
     action :nothing
-    command "bundle#{ruby_version} exec rake#{ruby_version} db:migrate"
+    command "bundle#{ruby_version} exec rake db:migrate"
     cwd rails_directory
     user rails_user
     group rails_group
@@ -245,7 +245,7 @@ define :rails_port, :action => [:create, :enable] do
 
   execute "#{rails_directory}/public/assets" do
     action :nothing
-    command "bundle#{ruby_version} exec rake#{ruby_version} assets:precompile"
+    command "bundle#{ruby_version} exec rake assets:precompile"
     environment "RAILS_ENV" => "production"
     cwd rails_directory
     user rails_user