-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

Im currently trying to get comfortable with automated application
deployment using Vlad. Im sure Im missing something absolutely
obvious, but it seems I cant get Vlad to run a custom command on the
remote server. Heres a simple task from my config/deploy.rb:

===============================================
namespace :vlad do
  task :foo do
    run "echo test"
  end
end
===============================================

Im however unable to run this:

===============================================
$ bundle exec rake vlad:foo --trace
** Invoke vlad:foo (first_time)
** Execute vlad:foo
rake aborted!
private method `run' called for nil:NilClass
(eval):1:in `run'
<*SNIP*>/config/deploy.rb:24:in `block (2 levels) in <top (required)>'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `block in
execute'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:158:in `block in
invoke_with_call_chain'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in
`mon_synchronize'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in
`invoke_with_call_chain'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:116:in
`invoke_task'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in
`block (2 levels) in top_level'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in
`block in top_level'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in
`standard_exception_handling'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:88:in
`top_level'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:66:in
`block in run'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in
`standard_exception_handling'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/opt/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:32:in
`<top (required)>'
/opt/rubies/ruby-1.9.3-p0/bin/rake:19:in `load'
/opt/rubies/ruby-1.9.3-p0/bin/rake:19:in `<main>'
Tasks: TOP => vlad:foo
===============================================

Im using Vlad 2.2.4 with vlad-git 2.2.0. Ruby version is ruby 1.9.3p0
(2011-10-30 revision 33570) [x86_64-linux].

Other Vlad commands, namely vlad:update and vlad:migrate, work just
fine, so Im sure Im missing something. Could somebody shed some
light on this?

Valete,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO9MfCAAoJELh1XLHFkqha2jEH/3wdMoVgOHVVhUKVpf1cS4Ci
On6kWkqc8JZjPP6PozT4rw8pXNPdsovI2+T7cIodP+7evPHoiWrlZ5A0gjO7eB9Q
+EsvrG9v8HLTHHjvgDyrp01/6Jmbr4sKnGukkTp5J6jW8U51hIeWnBPxSKASKAFi
ixmONKwY9OpUDVtAn8+BycF5ZFSoIPaIUtpQ0hFw1dR42+doQrk05IkzSYxWOVSw
oMTMXgbvyDDSuWkOQKdgxCb4z8yyREJKHAj0yjZDrDMPkmM5JteA9nCrSKx30tU4
OgZZYVTMzB/QD7WQXxOM0yqELfUA4oKP/vur29mOi432qlpMMFRFV8Q0Da4OEUs=
=YrZ7
-----END PGP SIGNATURE-----