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

-- 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 13:24, Robin Bowes wrote:
>
> > It's not so bad for this simple case but I have another task to write
> > that grabs ~200M of GeoIP updates and I only want to execute that once!
>
> 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?
>
> 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