phallstrom / slackistrano

Slack integration for Capistrano deployments.
MIT License
374 stars 74 forks source link

namespace issue #6

Closed michaelmaring closed 10 years ago

michaelmaring commented 10 years ago

any idea why this would be failing?

→ bundle exec cap q2 -S branch=q2-testing-framework slack:deploy:starting /home/userhere/vendor/bundle/ruby/2.1.0/gems/slackistrano-0.0.11/lib/slackistrano/tasks/slack.rake:2:in <top (required)>': undefined methodnamespace' for main:Object (NoMethodError) from /home/userhere/vendor/bundle/ruby/2.1.0/gems/slackistrano-0.0.11/lib/slackistrano.rb:5:in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/slackistrano-0.0.11/lib/slackistrano.rb:5:in<top (required)>' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:152:in require' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:152:inrequire' from ./config/deploy.rb:30:in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:93:ininstance_eval' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:93:in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:180:inload_from_file' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:89:in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:inblock in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:in each' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:inload' from Capfile:2:in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:93:ininstance_eval' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:93:in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:180:inload_from_file' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:89:in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:inblock in load' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:in each' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:inload' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:65:in block in load_recipes' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:65:ineach' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:65:in load_recipes' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:31:inexecute!' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:14:in execute' from /home/userhere/vendor/bundle/ruby/2.1.0/gems/capistrano-2.15.5/bin/cap:4:in<top (required)>' from /home/userhere/vendor/bundle/ruby/2.1.0/bin/cap:23:in load' from /home/userhere/vendor/bundle/ruby/2.1.0/bin/cap:23:in

'

phallstrom commented 10 years ago

Hrm. I don't use Ruby 2.1 myself. That would be weird though. What version of rake are you using?

michaelmaring commented 10 years ago

→ bundle exec rake -V rake, version 10.3.1

i have everything in there that it says is needed, here is my Capfile

→ cat Capfile

load 'deploy'
# load 'deploy/assets'
load 'config/deploy'

and my config/deploy.rb stores all the options, i would really like to get this working somehow,

phallstrom commented 10 years ago

Where are you require 'slackistrano' ?

michaelmaring commented 10 years ago

https://gist.github.com/mikemaring/5466e4b6b15ffef63881

phallstrom commented 10 years ago

Oh geesh. Not sure how I missed this, but you're using capistrano version 2. Slackistrano requires version 3. You might try https://github.com/j-mcnally/capistrano-slack