Here's a tutorial I wrote for my team:
https://github.com/haani-niyaz/capistrano

Hope it helps!
On Wednesday, 25 June 2014 18:35:13 UTC+10, ruud wrote:
>
> Versions:
>
>    - Ruby 1.9.2
>    - Capistrano3.0.1 
>    - (Rake Version: 10.3.2
>
>
> hello group,
> I just wanted to get the basics of capistrano to understand how and if I 
> can use it for my project.
>
> However, I am reading and trying for quite some time and I have not 
> created a single capfile that did anything without stacktraces. Can you 
> please assist me so that I can get started?
>
> Based on a very basic tutorial, my capfile contains right now:
>
> set :username, "ruud"
> set :host, "localhost"
>
> desc "simple test"
> task :search, :hosts => "#{username}@#{host}" do
>       run "ls -x1 /usr/lib | grep -i xml"
> end
>
> and cap reports me this:
> SZ cap search
> cap aborted!
> NameError: undefined local variable or method `username' for main:Object
> /data/ruby/capistrano/capfile:1:in `<top (required)>'
> /export/home/rdgon/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-3.0.1/lib/capistrano/application.rb:22:in
>  
> `load_rakefile'
>
> Do you know what I am missing?
> Maybe I am not using the right tutorial. If someone can recommend me a 
> step by step tutorial for understanding the basics, I would be very 
> grateful.
>
> Ruud
>

-- 
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/cf4fef1d-b639-47be-a274-6199b8a90b92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to