blavosync 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Blavosync.gemspec +1 -1
  2. data/README.rdoc +27 -3
  3. data/VERSION +1 -1
  4. metadata +1 -1
data/Blavosync.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blavosync}
8
- s.version = "0.0.5"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jayronc"]
data/README.rdoc CHANGED
@@ -1,8 +1,12 @@
1
- = indierockmedia-blavosync
1
+ == blavosync
2
2
 
3
+ INSTALLATION:
4
+ Add this line BELOW load 'config/deploy' in your Capfile
3
5
 
4
- BLAVOSYNC
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.5
1
+ 0.1.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blavosync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jayronc