factorylabs-fdlcap 0.2.7 → 0.3.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.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/fdlcap.gemspec +4 -2
- data/lib/fdlcap/defaults.rb +0 -7
- data/lib/fdlcap/extensions/recipe_definition.rb +7 -2
- data/lib/fdlcap/recipes.rb +1 -1
- data/lib/fdlcap/recipes/autotagger.rb +2 -2
- data/lib/fdlcap/recipes/stages.rb +12 -0
- metadata +3 -1
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg/
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/fdlcap.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{fdlcap}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.3.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Factory Design Labs"]
|
@@ -15,7 +15,8 @@ Gem::Specification.new do |s|
|
|
15
15
|
"README.rdoc"
|
16
16
|
]
|
17
17
|
s.files = [
|
18
|
-
"
|
18
|
+
".gitignore",
|
19
|
+
"LICENSE",
|
19
20
|
"README.rdoc",
|
20
21
|
"Rakefile",
|
21
22
|
"VERSION",
|
@@ -44,6 +45,7 @@ Gem::Specification.new do |s|
|
|
44
45
|
"lib/fdlcap/recipes/sass.rb",
|
45
46
|
"lib/fdlcap/recipes/slice.rb",
|
46
47
|
"lib/fdlcap/recipes/ssh.rb",
|
48
|
+
"lib/fdlcap/recipes/stages.rb",
|
47
49
|
"lib/fdlcap/recipes/symlinks.rb",
|
48
50
|
"lib/fdlcap/recipes/thin.rb",
|
49
51
|
"lib/fdlcap/recipes/thinking_sphinx.rb",
|
data/lib/fdlcap/defaults.rb
CHANGED
@@ -1,12 +1,5 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
2
|
|
3
|
-
# Set up default stages for capistano-ext-multistage
|
4
|
-
unless exists?(:stages)
|
5
|
-
set :stages, [ :staging, :production ]
|
6
|
-
end
|
7
3
|
|
8
|
-
unless exists?(:default_stage)
|
9
|
-
set :default_stage, :staging
|
10
|
-
end
|
11
4
|
|
12
5
|
end
|
@@ -7,8 +7,13 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
7
7
|
recipes[name] = block
|
8
8
|
end
|
9
9
|
|
10
|
-
def use_recipe(recipe)
|
11
|
-
fetch(:fdlcap_recipes)[recipe]
|
10
|
+
def use_recipe(recipe, *args)
|
11
|
+
recipe_block = fetch(:fdlcap_recipes)[recipe]
|
12
|
+
if recipe_block
|
13
|
+
recipe_block.call(*args)
|
14
|
+
else
|
15
|
+
raise ArgumentError, "Recipe => :#{recipe} not found"
|
16
|
+
end
|
12
17
|
end
|
13
18
|
|
14
19
|
end
|
data/lib/fdlcap/recipes.rb
CHANGED
@@ -6,7 +6,6 @@ require 'fdlcap/extensions/recipe_definition'
|
|
6
6
|
require 'fdlcap/defaults'
|
7
7
|
|
8
8
|
# Load external fdlcap dependencies
|
9
|
-
require 'capistrano/ext/multistage'
|
10
9
|
require 'eycap/recipes'
|
11
10
|
|
12
11
|
# Load up custom recipe chunks
|
@@ -25,6 +24,7 @@ require 'fdlcap/recipes/ruby_inline'
|
|
25
24
|
require 'fdlcap/recipes/sass'
|
26
25
|
require 'fdlcap/recipes/slice'
|
27
26
|
require 'fdlcap/recipes/ssh'
|
27
|
+
require 'fdlcap/recipes/stages'
|
28
28
|
require 'fdlcap/recipes/symlinks'
|
29
29
|
require 'fdlcap/recipes/thin'
|
30
30
|
require 'fdlcap/recipes/thinking_sphinx'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
|
-
define_recipe :release_tagger do
|
2
|
+
define_recipe :release_tagger do |*stages|
|
3
3
|
# Set up some default stages
|
4
|
-
set :autotagger_stages,
|
4
|
+
set :autotagger_stages, stages.flatten unless exists?(:autotagger_stages) && !stages.empty?
|
5
5
|
|
6
6
|
# This needs to be loaded after the stages are set up
|
7
7
|
require 'release_tagger'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
2
|
+
define_recipe :stages do |*stages|
|
3
|
+
|
4
|
+
set :stages, stages.flatten unless exists?(:stages) && !stages.empty?
|
5
|
+
|
6
|
+
unless exists?(:default_stage)
|
7
|
+
set :default_stage, :staging
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'capistrano/ext/multistage'
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factorylabs-fdlcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Factory Design Labs
|
@@ -62,6 +62,7 @@ extra_rdoc_files:
|
|
62
62
|
- LICENSE
|
63
63
|
- README.rdoc
|
64
64
|
files:
|
65
|
+
- .gitignore
|
65
66
|
- LICENSE
|
66
67
|
- README.rdoc
|
67
68
|
- Rakefile
|
@@ -91,6 +92,7 @@ files:
|
|
91
92
|
- lib/fdlcap/recipes/sass.rb
|
92
93
|
- lib/fdlcap/recipes/slice.rb
|
93
94
|
- lib/fdlcap/recipes/ssh.rb
|
95
|
+
- lib/fdlcap/recipes/stages.rb
|
94
96
|
- lib/fdlcap/recipes/symlinks.rb
|
95
97
|
- lib/fdlcap/recipes/thin.rb
|
96
98
|
- lib/fdlcap/recipes/thinking_sphinx.rb
|