blavosync 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Blavosync.gemspec +1 -1
- data/README.rdoc +27 -3
- data/VERSION +1 -1
- metadata +1 -1
data/Blavosync.gemspec
CHANGED
data/README.rdoc
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
|
1
|
+
== blavosync
|
2
2
|
|
3
|
+
INSTALLATION:
|
4
|
+
Add this line BELOW load 'config/deploy' in your Capfile
|
3
5
|
|
4
|
-
|
6
|
+
require 'blavosync'
|
5
7
|
|
8
|
+
|
9
|
+
USAGE:
|
6
10
|
adds the following tasks to projects using capistrano
|
7
11
|
|
8
12
|
------------------------------------------------------------
|
@@ -76,7 +80,27 @@ local:sync to get
|
|
76
80
|
a completely fresh set of data from the server
|
77
81
|
$> cap local:sync RAILS_ENV=production RESTORE_ENV=development
|
78
82
|
|
79
|
-
|
83
|
+
CONFIGURATION:
|
84
|
+
|
85
|
+
the following variables (with defaults shown) are available in your deploy.rb
|
86
|
+
|
87
|
+
|
88
|
+
set :blavosync_local_root, Pathname.new('.').realpath
|
89
|
+
set :blavosync_content_directories, content_directories ||= "system"
|
90
|
+
set :blavosync_content_path, File.join(shared_path, content_dir)
|
91
|
+
set :blavosync_public_path, File.join(latest_release, 'public')
|
92
|
+
set :blavosync_remote_backup_expires, 100000
|
93
|
+
set :blavosync_zip_command, "gzip"
|
94
|
+
set :blavosync_unzip_command, "gunzip"
|
95
|
+
set :blavosync_compressed_extension, "gz"
|
96
|
+
set :blavosync_tmp_dir, "tmp"
|
97
|
+
set :blavosync_content_sync_method, 'rsync'
|
98
|
+
set :blavosync_from_env, (ENV['FROM_ENV'].nil? ? 'production' : ENV['RAILS_ENV'])
|
99
|
+
set :blavosync_to_env, (ENV['TO_ENV'].nil? ? 'development' : ENV['TO_ENV'])
|
100
|
+
set :blavosync_rsync_content_backup_file, "#{shared_path}/system"
|
101
|
+
set :blavosync_tar_content_backup_file, "#{shared_path}/backup_#{from_env}_content.tar.#{zip_ext}"
|
102
|
+
set :blavosync_db_backup_file, "#{shared_path}/backup_#{from_env}_db.sql"
|
103
|
+
set :blavosync_db_backup_zip_file, "#{db_backup_file}.#{zip_ext}"
|
80
104
|
|
81
105
|
|
82
106
|
== Note on Patches/Pull Requests
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|