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 +4 -4
- data/README.md +2 -2
- data/capistrano-upload-config.gemspec +1 -1
- data/lib/upload-config/tasks.rake +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a6ab4f378c3ae5db31156febaf77b45b770f1c2
|
|
4
|
+
data.tar.gz: b3ff17e8fa80d518a3a7a09ae6224565f51dff1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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:
|
|
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.
|
|
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.
|
|
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-
|
|
11
|
+
date: 2014-03-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|