xforty / drush-deploy

Drupal deploy tool based on Capistrano and Drush
https://github.com/xforty/drush-deploy/wiki
Other
35 stars 4 forks source link

Error when running any command #22

Closed patcon closed 11 years ago

patcon commented 11 years ago

Haven't had time for much troubleshooting, but was getting this:

➜  drupal-skeletor git:(master) ✗ drush sa                                              
@none
@test
@test.vagrant
➜  drupal-skeletor git:(master) ✗ MAKEFILE=build-skeletor.make drush-deploy TARGET=@test.vagrant
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': /Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/lib/drush_deploy/capistrano.rb:56: syntax error, unexpected tIDENTIFIER, expecting tAMPER (SyntaxError)
/Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/lib/drush_deploy/capistrano.rb:88: syntax error, unexpected kDO_BLOCK, expecting kEND
      @drush_config.aliases.inject([]) do |list,(k,v)|
                                         ^
/Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/lib/drush_deploy/capistrano.rb:88: syntax error, unexpected '|', expecting '='
/Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/lib/drush_deploy/capistrano.rb:94: syntax error, unexpected kEND, expecting $end
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:152:in `require'
    from /Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/lib/drush_deploy/recipes/setup.rb:1:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:89:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `each'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `load'
    from /Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/lib/drush_deploy/recipes/all.rb:3:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:89:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `each'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `load'
    from /Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/lib/drush_deploy.rb:18
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:152:in `require'
    from /Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/lib/drush_deploy/recipes/bootstrap.rb:2:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:89:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `each'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/configuration/loading.rb:86:in `load'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:65:in `load_recipes'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:65:in `each'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:65:in `load_recipes'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:31:in `execute_without_drush'
    from /Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/bin/drush-deploy:11:in `execute!'
    from /Library/Ruby/Gems/1.8/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:14:in `execute'
    from /Library/Ruby/Gems/1.8/gems/drush-deploy-1.0.12/bin/drush-deploy:16
    from /usr/bin/drush-deploy:19:in `load'
    from /usr/bin/drush-deploy:19

Tried on both mac default (1.8.7) and a version running behind rbenv (1.9.3-p194)

medlefsen commented 11 years ago

I'm going to try to reproduce but I would double check if 1.9.3 was actually being used when you tried it. drush-deploy only supports ruby >1.9 and I'm not sure what else would cause that sort of syntax error for you but not for other users.

Thanks

patcon commented 11 years ago

rbenv sometimes does wonky stuff that I'm still getting used to, so I'll double check later in the week (using bundler to isolate, which I didn't use during the quick test)

Thanks!

patcon commented 11 years ago

Sorted out that it was running on the system ruby -- 1.8.7. Using rbenv exec [command] solved that issue :)