frame 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/generators/frame/secret/templates/Rakefile +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -32,7 +32,7 @@ end
|
|
32
32
|
task :backup, :roles => :db, :only => { :primary => true } do
|
33
33
|
filename = "#{Rails.application.class.parent_name.downcase}.db_backup.#{Time.now.to_f}.sql.bz2"
|
34
34
|
filepath = File.join(deploy_to,'current',filename)
|
35
|
-
config = YAML.load_file(File.join(deploy_to,'private', 'config', 'database.yml')
|
35
|
+
config = YAML.load_file(File.join(deploy_to,'private', 'config', 'database.yml'))
|
36
36
|
run "mysqldump -u #{config['production']['username']} -p #{config['production']['database']} | bzip2 -c > #{filepath}" do |ch, stream, out|
|
37
37
|
ch.send_data "#{config['production']['password']}\n" if out =~ /^Enter password:/
|
38
38
|
end
|