OK, this seems to work:

    @file_generated = false
    def generate_config_file
         # implement me in pure, standard ruby!
         @file_generated ||= system("scripts/create_config
files/counter.php")
    end

    desc <<-DESC
        Create counter.php config file & copy to release path
    DESC
    task :update_config_file, :roles => [:web] do
        generate_config_file
        print "    Copying config file.\n"
        upload("files/counter.php", "#{release_path}/www/counter.php")
    end


However, you'll noticed that the scratch file name (files/counter.php)
is specified in two places. Can I somehow define that in a var that can
be used un the system call *and* in the cap upload command?

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] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to