{"issue":{"created_at":"2011-10-28T15:11:00Z","state":"open","updated_at":"2011-11-22T22:13:02Z","user":{"gravatar_id":"a2593cc2f4a68d523ccde1d17fb09766","id":60791,"url":"https://api.github.com/users/ppgengler","login":"ppgengler","avatar_url":"https://secure.gravatar.com/avatar/a2593cc2f4a68d523ccde1d17fb09766?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"Hi,\r\n\r\nI've recently upgraded to 2.9.0 from a modified 2.6.0 version and I'm hitting an issue on deploy:migrations.  I've included the exception stacktrace at the end, but basically the command instead of inserting the text \"rake\" is trying to make a call to a rake method:\r\n\r\n```ruby\r\nrun \"cd #{directory} && #{rake} RAILS_ENV=#{rails_env} #{migrate_env} db:migrate\"\r\n```\r\n\r\nThis seems due to commit f68fcae65d1800e295ecfb0697f4f7e8bd74c749 removing the fetch for rake and rails_env.  It did add in a _cset of those vars, but I'm not certain what that is supposed to do and it doesn't appear to be making them available as instance vars, and so the command line is failing.  I'm guessing that rails_env is would fail as well with an undefined error if the rake issue was fixed.\r\n\r\nI'm having a hard time believing that this is an issue for everyone because it would stop people pretty quickly so I'm guessing it something particular to my setup.  If anyone is experiencing this or has ideas for a fix please let me know.  I'm running on Ubuntu 10.04, ruby 1.8.7-p334, rails 2.3.14 if any of that makes a difference.\r\n\r\nThanks,\r\n\\Peter\r\n\r\nStacktrace:\r\n<pre>\r\ncapistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `rake': wrong number of arguments (0 for 1) (ArgumentError)\r\n  from capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `send'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `method_missing'\r\n  from capistrano-2.9.0/lib/capistrano/recipes/deploy.rb:387:in `load'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly_without_callbacks'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `send'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `method_missing'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:104:in `migrate'\r\n  from capistrano-2.9.0/lib/capistrano/recipes/deploy.rb:400:in `load'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly_without_callbacks'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `send'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `method_missing'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:104:in `migrations'\r\n  from ./config/deploy.rb:69:in `load'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly_without_callbacks'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'\r\n  from capistrano-2.9.0/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'\r\n  from capistrano-2.9.0/lib/capistrano/cli/execute.rb:46:in `execute_requested_actions_without_help'\r\n  from capistrano-2.9.0/lib/capistrano/cli/execute.rb:45:in `each'\r\n  from capistrano-2.9.0/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions_without_help'\r\n  from capistrano-2.9.0/lib/capistrano/cli/help.rb:19:in `execute_requested_actions'\r\n  from capistrano-2.9.0/lib/capistrano/cli/execute.rb:34:in `execute!'\r\n  from capistrano-2.9.0/lib/capistrano/cli/execute.rb:14:in `execute'\r\n  from capistrano-2.9.0/bin/cap:4\r\n</pre>\r\n","assignee":null,"number":122,"id":2080433,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"deploy:migrate task throws error due to bad 'rake' usage","html_url":"https://github.com/capistrano/capistrano/issues/122","closed_at":null,"url":"https://api.github.com/repos/capistrano/capistrano/issues/122","milestone":null},"action":"created","comment":{"created_at":"2011-11-22T22:13:02Z","updated_at":"2011-11-22T22:13:02Z","user":{"gravatar_id":"235c58ad566abb4c7979bc7033e9882c","id":52503,"url":"https://api.github.com/users/dgm","login":"dgm","avatar_url":"https://secure.gravatar.com/avatar/235c58ad566abb4c7979bc7033e9882c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I think I have something similar, but the command I'm seeing it fail with is:\r\n\r\n executing \"cd /home/redmine/cumpp/releases/20111122192221 && #<Capistrano::Configuration::Namespaces::Namespace:0x979cf8> RAILS_ENV=staging  db:migrate\"","id":2841623,"url":"https://api.github.com/repos/capistrano/capistrano/issues/comments/2841623"}}