cap_sync 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/cap_sync.gemspec +1 -1
- data/lib/cap_sync.rb +2 -1
- metadata +3 -3
data/cap_sync.gemspec
CHANGED
data/lib/cap_sync.rb
CHANGED
@@ -36,7 +36,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
36
36
|
|
37
37
|
desc "Sync remote production data with local development machine"
|
38
38
|
task :data do
|
39
|
-
folders_to_sync = Hash[*ENV['FOLDERS'].split(',')]
|
39
|
+
folders_to_sync = Hash[*ENV['FOLDERS'].split(',')] if ENV['FOLDERS'].present?
|
40
|
+
folders_to_sync ||= sync_folders
|
40
41
|
|
41
42
|
if sync_method == :rsync
|
42
43
|
folders_to_sync.each do |remote, local|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cap_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Sokolov
|