require 'securerandom' extra_config = <<-EXTRA # This was auto-generated by Rubber and is unique to your machine. Feel free to regenerate if you'd like. # You may want to move this to your rubber-secret.yml to keep it out of version control. graphite_web_secret: #{SecureRandom.hex(96)} EXTRA append_to_file 'config/rubber/rubber-graphite.yml', "\n#{extra_config}"