cap_sync 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/cap_sync.gemspec +1 -1
  2. data/lib/cap_sync.rb +2 -1
  3. metadata +3 -3
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "cap_sync"
6
- s.version = '0.0.4'
6
+ s.version = '0.0.6'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.author = "Victor Sokolov"
9
9
  s.email = "gzigzigzeo@gmail.com"
@@ -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(',')] || sync_folders
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: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Sokolov