roles: 'app' Should be:
roles: [:app] At first guess... Sent from my Nexus 4. On 18 Mar 2014 14:19, "gonace" <erik.hennerf...@obscured.se> wrote: > Versions: > > > - Ruby (1.9.3p484) > - Capistrano (3.1.0) > > Platform: > > - Working on Mac OS X > > > Error > workBook:test-deployment user$ cap test server:uptime > /Users/user/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/sshkit-1.3.0/lib/sshkit.rb:3: > warning: already initialized constant StandardError > DEBUG [1ab63e9f] Running /usr/bin/env uptime on test-api.domain.tld > DEBUG [1ab63e9f] Command: /usr/bin/env uptime > cap aborted! > undefined method `each' for "aaaaaa":String > /Users/user/.rvm/gems/ruby-1.9.3-p484@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/session.rb:66:in > `authenticate' > /Users/user/.rvm/gems/ruby-1.9.3-p484@global/gems/net-ssh-2.8.0/lib/net/ssh.rb:204:in > `start' > config/deploy.rb:68:in `block (3 levels) in <top (required)>' > Tasks: TOP => server:uptime > > Code > namespace :server do > desc 'Show server uptime' > task :uptime do > on roles(:app) do |host| > puts "#{host.hostname} reports: #{capture(:uptime)}" > end > end > end > > server 'test-api.domain.tld', roles: 'app', ssh_options: { > user: fetch(:user), > forward_agent: true, > auth_methods: fetch(:password) > } > > I can't understand why, any ideas? (Exemple task from > http://capistranorb.com/) > > -- > You received this message because you are subscribed to the Google Groups > "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to capistrano+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/capistrano/b2049a72-770b-42bf-b634-b102ea122b70%40googlegroups.com<https://groups.google.com/d/msgid/capistrano/b2049a72-770b-42bf-b634-b102ea122b70%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/CAN_%2BVLVM3bowa1Q4bVpdHVuhZt34a8GMATXBENRCeCMRGdRZrQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.