capistrano-shared_config 0.0.2 → 0.0.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9743f8adc2a991b56ca550a864441fbe6ce011d
|
|
4
|
+
data.tar.gz: d0e351b0a14de77eca2a5fa6ea6878c12b951ad4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21f037941626daceaa668d95d0b4ff0795b56745d7c1e9ce71837d75076adde3fd6fc0f1494415dce6dd21d5c5295671923360c21dbb1ccb42414c3975d6fe75
|
|
7
|
+
data.tar.gz: 3a6e7907866d51e144201e85f5a466664bfb01d26c57e26c189ec2bfd72d8782c8c4e349773cab7952ba4aa9fc819cf672e2c75ed04b2e949fd3a78b2ee9477a
|
data/README.md
CHANGED
|
@@ -33,7 +33,8 @@ set :shared_config_symlinks, %w[database, settings.local newrelic.yml] # default
|
|
|
33
33
|
require 'capistrano/shared_config'
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Notice, you may skip `.yml` extension when configuring configs lists
|
|
36
|
+
Notice, you may skip `.yml` extension when configuring configs lists
|
|
37
|
+
(Known extensions are: `.rb`, `.conf`, `.pem`, `.ppk` and `.yml`).
|
|
37
38
|
|
|
38
39
|
Make sure, you require capistrano/shared\_config after desired `shared_config_files` set
|
|
39
40
|
|
|
@@ -21,7 +21,7 @@ module Capistrano
|
|
|
21
21
|
namespace :shared_config do
|
|
22
22
|
desc 'Create shared config folder'
|
|
23
23
|
task :setup do
|
|
24
|
-
run "mkdir #{File.join(shared_path, 'config')}"
|
|
24
|
+
run "mkdir -p #{File.join(shared_path, 'config')}"
|
|
25
25
|
end
|
|
26
26
|
after 'deploy:setup', 'shared_config:setup'
|
|
27
27
|
|
|
@@ -122,6 +122,16 @@ describe Capistrano::SharedConfig::Integration do
|
|
|
122
122
|
Capistrano::SharedConfig::Integration.load_into(cap)
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
+
describe 'shared_config:setup' do
|
|
126
|
+
before do
|
|
127
|
+
cap.find_and_execute_task('shared_config:setup')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
it 'should create symlinks for all config files' do
|
|
131
|
+
cap.should have_run('mkdir -p /shared/config')
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
125
135
|
describe 'shared_config:symlinks' do
|
|
126
136
|
before do
|
|
127
137
|
cap.set(:latest_release, '/release')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-shared_config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Stanko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|