Hi Himanshu,
You can play with -s / -S parameters("cap --help" to see the difference).
For example:
cap deploy -s tagid=awesome_tag
Then tagid will have the value "awesome_tag".
Regards
2011/7/28 Himanshu Raina <[email protected]>
> Hi,
>
> I'm just trying to automate the deployment process in a way that it
> shouldn't ask the user for any input.
>
> The deploy.rb looks something like this
>
> set :application, "application"
> set(:tagid) { Capistrano::CLI.ui.ask("tagid: ") }
> set :repository, "http://serv3.himanshu.com/Project/Tags/QA/#{tagid}"
>
>
> Is there a way I can pass the tagid as an external parameter to the script.
> I have a shell script which in turn calls the deployment script, so is there
> a way I can pass the tagid which I'm getting from some method.
>
> Regards,
> Himanshu
>
> --
> * You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/capistrano?hl=en
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en