capistrano-upload-config 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dde3a6365279fc68794a1c8cc8938d6b0f042373
4
- data.tar.gz: c67453f9d0ffa572d0c23f01922396ba7b00919e
3
+ metadata.gz: 2a6ab4f378c3ae5db31156febaf77b45b770f1c2
4
+ data.tar.gz: b3ff17e8fa80d518a3a7a09ae6224565f51dff1b
5
5
  SHA512:
6
- metadata.gz: 6a99074b5c47f0fb34abc3525973a0474237d2566deea9d26f731fd8a852d8a86780ea1c740bc55f42f11031e6122e9e53c9ccc565bede8aaa9b1c2540c043ea
7
- data.tar.gz: 81324123e0ff7512c6e634836ba9e977a4559977261cd9a53a0365d4dc6f2644a4b8ddad657e3478657054be45655603464e15c9c41e0b5cf226e926edb2c124
6
+ metadata.gz: 394a7f263da31ffb089cc70705e528e81aa5dcb336b073b8bbcabb94fb2a9b1d5016fc3c6cac201739f4ca6d93c2708f0f09691cc70d33923e40dcf943d779c5
7
+ data.tar.gz: e06f8b6f1bbf50f1c88cee397be1c9bc1d0330a0136a3edf38e1f64b7a2336259ee7aad10d6cbef7d2bd96c26823c8b6671b23dac6c83704255031baaea54bd3
data/README.md CHANGED
@@ -80,12 +80,12 @@ $ cap staging config:init
80
80
  ```
81
81
 
82
82
  Can be used during a deploy, If your `:config_files` and `:linked_files` are going to be the same I suggest hooking in before
83
- `deploy:starting` to that the config files exist before symlinks are created:
83
+ `deploy:check:linked_files` so that the shared directories have been created but the shared files not checked:
84
84
 
85
85
  ```ruby
86
86
  # add to config/deploy.rb
87
87
 
88
- before 'deploy:starting', 'config:push'
88
+ before 'deploy:check:linked_files', 'config:push'
89
89
  ```
90
90
 
91
91
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-upload-config'
7
- spec.version = '0.1.0'
7
+ spec.version = '0.2.0'
8
8
  spec.authors = 'Robert Coleman'
9
9
  spec.email = 'github@robert.net.nz'
10
10
  spec.description = %q{Capistrano 3.x tasks to upload shared config that is stored outside of SCM}
@@ -43,7 +43,7 @@ namespace :config do
43
43
  local_path = CapistranoUploadConfig::Helpers.get_local_config_name(config, fetch(:stage).to_s)
44
44
  if File.exists?(local_path)
45
45
  info "Uploading config #{local_path} as #{config}"
46
- upload! StringIO.new(local_path), File.join(shared_path, config)
46
+ upload! StringIO.new(IO.read(local_path)), File.join(shared_path, config)
47
47
  else
48
48
  fail "#{local_path} doesn't exist"
49
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-upload-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Coleman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano