Hi their,

I want to add several commands to Capistrano DSL for manage init.d files. 
For example:

  task :init_d do
    on roles(:app), in: :sequence, wait: 5 do
      *install_initd('handler', 'bin/handler', nil, start_env: 
'PATH=/opt/ruby/shims:$PATH RUBY_ENV=production')*
    end
  end

As you can see I want to add several methods with arguments and call them 
from tasks. I can't use tasks because they don't have ability to pass 
parameters.

Could you please recommend a way how can I extend Capistrano DSL and add 
own method to it?

Thanks

-- 
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 [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/43d7d1e1-23b0-4fd3-8485-a16f32148faa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to