I'd have something like this:

task :upload_config_file, :roles => [:all] do
   generate_config_file
   put() # see our docs for put.
end

-- Lee Hambley

Twitter: @leehambley | @capistranorb
Blog: http://lee.hambley.name/
Working with Rails: http://is.gd/1s5W1


2009/12/2 Robin Bowes <[email protected]>

> On 02/12/09 15:04, Lee Hambley wrote:
> > The idea would be that file_generated would be boolean,
> >
> > # deploy.rb
> >
> > @file_generated = false
> >
> > def generate_config_file
> >      # implement me in pure, standard ruby!
> >      @file_generated ||= system('script/system')
> > end
> >
> > System, should - once generate the file
>
> You appear to be answering the question before last :)
>
> Thanks - I'll give that a go.
>
> >     In this case, what I need to do is run the following commands:
> >
> >     # First make sure /usr/share/GeoIP/ is up-to-date locally
> >     geoippudate
> >     # Then update twenty nodes
> >     for node in node${seq -w 1 20} ; do
> >        rsync -avn /usr/share/GeoIP/ r...@$node:/usr/share/GeoIP
> >     done
> >
> >     How can I capify this?
>
> How about this?
>
> R.
>
> --
> * 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]<capistrano%[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

Reply via email to