capistrano-multiconfig 3.0.3 → 3.0.7
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 +13 -5
- data/capistrano-multiconfig.gemspec +3 -4
- data/lib/capistrano/multiconfig.rb +7 -1
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da80597acf1e7f3985692907fc68837eb3b09c6e
|
|
4
|
+
data.tar.gz: baa9d71c96ea62f058e5ab5e7352df7a5ed2681d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0f1acac60adff18de43bfdca2b89c3d0f003415a4a914a0797ac2c2b9e20aec8936b71c7720e2e6a1383b03c9e0e398b43ab1162301a949f966c852049e6677
|
|
7
|
+
data.tar.gz: 617559b28ec7181913c225a84eedf7eb217dd1de4acdb7a0aab58ec19fea17e1b2fc3c53a259fa7b88299b9ff771fc701b73eaa8534968c91fdb355d7c265cb3
|
data/README.md
CHANGED
|
@@ -21,19 +21,27 @@ Install gem
|
|
|
21
21
|
$ gem install capistrano-multiconfig
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
Add to `Capfile`
|
|
25
|
-
|
|
26
|
-
set :config, 'path/to/your/configurations'
|
|
27
|
-
require 'capistrano/multiconfig'
|
|
28
|
-
|
|
29
24
|
## Capistrano3
|
|
30
25
|
|
|
31
26
|
Use multiconfig v3.x.x
|
|
32
27
|
|
|
28
|
+
Replace `capistrano/setup` with `capistrano/multiconfig` in your `Capfile`:
|
|
29
|
+
|
|
30
|
+
# set :stages_root, 'config/deploy'
|
|
31
|
+
require 'capistrano/multiconfig'
|
|
32
|
+
|
|
33
|
+
Optionally you may set another path to your multistages configurations with *:stages_root*.
|
|
34
|
+
|
|
33
35
|
## Capistrano2
|
|
34
36
|
|
|
35
37
|
For legacy capistrano v2.x.x use multiconfig gem v0.0.x
|
|
36
38
|
|
|
39
|
+
Add to `Capfile`
|
|
40
|
+
|
|
41
|
+
set :config_root, 'path/to/your/configurations'
|
|
42
|
+
require 'capistrano/multiconfig'
|
|
43
|
+
|
|
44
|
+
|
|
37
45
|
## Example
|
|
38
46
|
|
|
39
47
|
Assume we need next configurations:
|
|
@@ -3,10 +3,10 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "capistrano-multiconfig"
|
|
6
|
-
s.version = "3.0.
|
|
6
|
+
s.version = "3.0.7"
|
|
7
7
|
s.authors = ["Andriy Yanko"]
|
|
8
8
|
s.email = ["andriy.yanko@gmail.com"]
|
|
9
|
-
s.homepage = "https://github.com/railsware/multiconfig"
|
|
9
|
+
s.homepage = "https://github.com/railsware/capistrano-multiconfig"
|
|
10
10
|
s.summary = %q{Capistrano extension that allows to use multiple configurations}
|
|
11
11
|
s.description = %q{
|
|
12
12
|
Multiconfig extension is similar to [multistage](https://github.com/capistrano/capistrano-ext) extenstion.
|
|
@@ -14,8 +14,7 @@ But it's not only about 'stage' configurations. It's about any configuration tha
|
|
|
14
14
|
Extension recursively builds configuration list from configuration root directory.
|
|
15
15
|
Each configuration loads recursively configuration from namespace files and own configuration file.
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
s.rubyforge_project = "capistrano-multiconfig"
|
|
17
|
+
s.license = "MIT"
|
|
19
18
|
|
|
20
19
|
s.files = `git ls-files`.split("\n")
|
|
21
20
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
@@ -3,6 +3,12 @@ require 'capistrano/multiconfig/dsl'
|
|
|
3
3
|
include Capistrano::DSL
|
|
4
4
|
include Capistrano::Multiconfig::DSL
|
|
5
5
|
|
|
6
|
+
namespace :load do
|
|
7
|
+
task :defaults do
|
|
8
|
+
load 'capistrano/defaults.rb'
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
6
12
|
stages.each do |stage|
|
|
7
13
|
Rake::Task.define_task(stage) do
|
|
8
14
|
|
|
@@ -10,7 +16,7 @@ stages.each do |stage|
|
|
|
10
16
|
set(:stage, stage)
|
|
11
17
|
|
|
12
18
|
# Load defaults variables
|
|
13
|
-
load
|
|
19
|
+
invoke 'load:defaults'
|
|
14
20
|
|
|
15
21
|
# Load stage configuration(s).
|
|
16
22
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-multiconfig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andriy Yanko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -78,8 +78,9 @@ files:
|
|
|
78
78
|
- lib/capistrano/multiconfig.rb
|
|
79
79
|
- lib/capistrano/multiconfig/dsl.rb
|
|
80
80
|
- spec/integration_spec.rb
|
|
81
|
-
homepage: https://github.com/railsware/multiconfig
|
|
82
|
-
licenses:
|
|
81
|
+
homepage: https://github.com/railsware/capistrano-multiconfig
|
|
82
|
+
licenses:
|
|
83
|
+
- MIT
|
|
83
84
|
metadata: {}
|
|
84
85
|
post_install_message:
|
|
85
86
|
rdoc_options: []
|
|
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
96
97
|
- !ruby/object:Gem::Version
|
|
97
98
|
version: '0'
|
|
98
99
|
requirements: []
|
|
99
|
-
rubyforge_project:
|
|
100
|
+
rubyforge_project:
|
|
100
101
|
rubygems_version: 2.0.3
|
|
101
102
|
signing_key:
|
|
102
103
|
specification_version: 4
|