cape 1.7.0 → 1.8.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 +7 -0
- data/.gitignore +2 -1
- data/.rspec +1 -1
- data/.travis.yml +6 -2
- data/Appraisals +11 -0
- data/Gemfile +4 -4
- data/Guardfile +10 -4
- data/History.markdown +6 -0
- data/README.markdown +32 -17
- data/Rakefile +33 -13
- data/cape.gemspec +6 -2
- data/features/dsl/each_rake_task/unqualified.feature +0 -6
- data/features/dsl/each_rake_task/with_defined_namespace.feature +1 -1
- data/features/dsl/each_rake_task/with_defined_task.feature +4 -4
- data/features/dsl/each_rake_task/with_undefined_task_or_namespace.feature +2 -2
- data/features/dsl/mirror_rake_tasks/inside_capistrano_namespace.feature +3 -4
- data/features/dsl/mirror_rake_tasks/unqualified.feature +89 -32
- data/features/dsl/mirror_rake_tasks/with_cd.feature +18 -12
- data/features/dsl/mirror_rake_tasks/with_cd_and_environment_variables.feature +6 -4
- data/features/dsl/mirror_rake_tasks/with_defined_namespace.feature +7 -3
- data/features/dsl/mirror_rake_tasks/with_defined_task.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd_and_environment_variables.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_environment_variables.feature +21 -17
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd_and_environment_variables.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_environment_variables.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd_and_environment_variables.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_environment_variables.feature +4 -2
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options.feature +22 -18
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd_and_environment_variables.feature +10 -8
- data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_environment_variables.feature +22 -18
- data/features/dsl/mirror_rake_tasks/with_environment_variables.feature +14 -10
- data/features/dsl/mirror_rake_tasks/with_rename.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_cd.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_cd_and_environment_variables.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_environment_variables.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd_and_environment_variables.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_environment_variables.feature +3 -1
- data/features/dsl/mirror_rake_tasks/with_undefined_task_or_namespace.feature +2 -2
- data/features/dsl/mirror_rake_tasks/with_valid_options.feature +12 -8
- data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd.feature +6 -4
- data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd_and_environment_variables.feature +6 -4
- data/features/dsl/mirror_rake_tasks/with_valid_options_and_environment_variables.feature +14 -10
- data/features/dsl/rake_executable.feature +1 -6
- data/features/step_definitions.rb +0 -12
- data/gemfiles/capistrano_v2.x.gemfile +7 -0
- data/gemfiles/capistrano_v2.x.gemfile.lock +66 -0
- data/gemfiles/rake_v0.9.3.gemfile +7 -0
- data/gemfiles/rake_v0.9.3.gemfile.lock +66 -0
- data/gemfiles/rake_v10.x.gemfile +7 -0
- data/gemfiles/rake_v10.x.gemfile.lock +66 -0
- data/lib/cape/capistrano.rb +39 -29
- data/lib/cape/version.rb +1 -1
- data/lib/cape/xterm.rb +1 -1
- data/spec/cape/capistrano_spec.rb +13 -3
- data/spec/cape/core_ext/hash_spec.rb +5 -5
- data/spec/cape/core_ext/symbol_spec.rb +10 -8
- data/spec/cape/deprecation/base_sharedspec.rb +6 -2
- data/spec/cape/deprecation/capistrano_deprecated_define_rake_wrapper_spec.rb +123 -101
- data/spec/cape/deprecation/dsl_deprecated_mirror_rake_tasks_spec.rb +119 -97
- data/spec/cape/dsl_deprecated_spec.rb +128 -134
- data/spec/cape/dsl_spec.rb +56 -63
- data/spec/cape/hash_list_spec.rb +40 -20
- data/spec/cape/rake_spec.rb +59 -51
- data/spec/cape/recipe_definition_spec.rb +44 -32
- data/spec/cape/util_spec.rb +18 -18
- data/spec/cape/version_spec.rb +1 -1
- data/spec/cape/xterm_spec.rb +33 -33
- data/spec/cape_spec.rb +9 -7
- data/spec/spec_helper.rb +5 -1
- metadata +100 -86
@@ -23,7 +23,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
23
23
|
"""
|
24
24
|
cap do_load # A task that shadows a Ruby method.
|
25
25
|
"""
|
26
|
-
And the output should not contain "
|
26
|
+
And the output should not contain "long"
|
27
27
|
And the output should not contain "my_namespace"
|
28
28
|
|
29
29
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -47,6 +47,8 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
47
47
|
Then the output should contain:
|
48
48
|
"""
|
49
49
|
* executing `do_load'
|
50
|
-
|
50
|
+
"""
|
51
|
+
And the output should contain:
|
52
|
+
"""
|
51
53
|
`do_load' is only run for servers matching {:roles=>:app}, but no servers matched
|
52
54
|
"""
|
@@ -10,19 +10,19 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and valid options
|
|
10
10
|
And a Capfile with:
|
11
11
|
"""
|
12
12
|
Cape do
|
13
|
-
mirror_rake_tasks :
|
13
|
+
mirror_rake_tasks :long, :roles => :app
|
14
14
|
end
|
15
15
|
"""
|
16
16
|
When I run `cap -vT`
|
17
17
|
Then the output should contain:
|
18
18
|
"""
|
19
|
-
cap
|
19
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
20
20
|
"""
|
21
|
-
And the output should not contain "
|
21
|
+
And the output should not contain "with_one_arg"
|
22
22
|
And the output should not contain "my_namespace"
|
23
23
|
And the output should contain:
|
24
24
|
"""
|
25
|
-
*** DEPRECATED: `mirror_rake_tasks :
|
25
|
+
*** DEPRECATED: `mirror_rake_tasks :long, :roles => :app`. Use this instead: `mirror_rake_tasks(:long) { |recipes| recipes.options[:roles] = :app }`
|
26
26
|
"""
|
27
27
|
|
28
28
|
Scenario: mirror only the matching Rake task
|
@@ -30,7 +30,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and valid options
|
|
30
30
|
And a Capfile with:
|
31
31
|
"""
|
32
32
|
Cape do
|
33
|
-
mirror_rake_tasks :
|
33
|
+
mirror_rake_tasks :long do |recipes|
|
34
34
|
recipes.options[:roles] = :app
|
35
35
|
end
|
36
36
|
end
|
@@ -38,9 +38,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and valid options
|
|
38
38
|
When I run `cap -vT`
|
39
39
|
Then the output should contain:
|
40
40
|
"""
|
41
|
-
cap
|
41
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
42
42
|
"""
|
43
|
-
And the output should not contain "
|
43
|
+
And the output should not contain "with_one_arg"
|
44
44
|
And the output should not contain "my_namespace"
|
45
45
|
And the output should not contain "DEPRECATED"
|
46
46
|
|
@@ -52,16 +52,18 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and valid options
|
|
52
52
|
set :current_path, '/current/path'
|
53
53
|
|
54
54
|
Cape do
|
55
|
-
mirror_rake_tasks '
|
55
|
+
mirror_rake_tasks 'long', :roles => :app
|
56
56
|
end
|
57
57
|
"""
|
58
|
-
When I run `cap
|
58
|
+
When I run `cap long`
|
59
59
|
Then the output should contain:
|
60
60
|
"""
|
61
|
-
*** DEPRECATED: `mirror_rake_tasks "
|
62
|
-
* executing `
|
63
|
-
|
64
|
-
|
61
|
+
*** DEPRECATED: `mirror_rake_tasks "long", :roles => :app`. Use this instead: `mirror_rake_tasks("long") { |recipes| recipes.options[:roles] = :app }`
|
62
|
+
* executing `long'
|
63
|
+
"""
|
64
|
+
And the output should contain:
|
65
|
+
"""
|
66
|
+
`long' is only run for servers matching {:roles=>:app}, but no servers matched
|
65
67
|
"""
|
66
68
|
|
67
69
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -71,16 +73,18 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and valid options
|
|
71
73
|
set :current_path, '/current/path'
|
72
74
|
|
73
75
|
Cape do
|
74
|
-
mirror_rake_tasks '
|
76
|
+
mirror_rake_tasks 'long' do |recipes|
|
75
77
|
recipes.options[:roles] = :app
|
76
78
|
end
|
77
79
|
end
|
78
80
|
"""
|
79
|
-
When I run `cap
|
81
|
+
When I run `cap long`
|
80
82
|
Then the output should contain:
|
81
83
|
"""
|
82
|
-
* executing `
|
83
|
-
|
84
|
-
|
84
|
+
* executing `long'
|
85
|
+
"""
|
86
|
+
And the output should contain:
|
87
|
+
"""
|
88
|
+
`long' is only run for servers matching {:roles=>:app}, but no servers matched
|
85
89
|
"""
|
86
90
|
And the output should not contain "DEPRECATED"
|
@@ -9,7 +9,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
9
9
|
And a Capfile with:
|
10
10
|
"""
|
11
11
|
Cape do
|
12
|
-
mirror_rake_tasks :
|
12
|
+
mirror_rake_tasks :long do |recipes|
|
13
13
|
recipes.options[:roles] = :app
|
14
14
|
recipes.cd { release_path }
|
15
15
|
end
|
@@ -18,9 +18,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
18
18
|
When I run `cap -vT`
|
19
19
|
Then the output should contain:
|
20
20
|
"""
|
21
|
-
cap
|
21
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
22
22
|
"""
|
23
|
-
And the output should not contain "
|
23
|
+
And the output should not contain "with_one_arg"
|
24
24
|
And the output should not contain "my_namespace"
|
25
25
|
|
26
26
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -30,16 +30,18 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
30
30
|
set :release_path, '/release/path'
|
31
31
|
|
32
32
|
Cape do
|
33
|
-
mirror_rake_tasks :
|
33
|
+
mirror_rake_tasks :long do |recipes|
|
34
34
|
recipes.options[:roles] = :app
|
35
35
|
recipes.cd { release_path }
|
36
36
|
end
|
37
37
|
end
|
38
38
|
"""
|
39
|
-
When I run `cap
|
39
|
+
When I run `cap long`
|
40
40
|
Then the output should contain:
|
41
41
|
"""
|
42
|
-
* executing `
|
43
|
-
|
44
|
-
|
42
|
+
* executing `long'
|
43
|
+
"""
|
44
|
+
And the output should contain:
|
45
|
+
"""
|
46
|
+
`long' is only run for servers matching {:roles=>:app}, but no servers matched
|
45
47
|
"""
|
@@ -9,7 +9,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
9
9
|
And a Capfile with:
|
10
10
|
"""
|
11
11
|
Cape do
|
12
|
-
mirror_rake_tasks :
|
12
|
+
mirror_rake_tasks :long do |recipes|
|
13
13
|
recipes.options[:roles] = :app
|
14
14
|
recipes.cd { release_path }
|
15
15
|
recipes.env['RAILS_ENV'] = lambda { rails_env }
|
@@ -19,9 +19,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
19
19
|
When I run `cap -vT`
|
20
20
|
Then the output should contain:
|
21
21
|
"""
|
22
|
-
cap
|
22
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
23
23
|
"""
|
24
|
-
And the output should not contain "
|
24
|
+
And the output should not contain "with_one_arg"
|
25
25
|
And the output should not contain "my_namespace"
|
26
26
|
|
27
27
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -32,17 +32,19 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
32
32
|
set :rails_env, 'rails-env'
|
33
33
|
|
34
34
|
Cape do
|
35
|
-
mirror_rake_tasks :
|
35
|
+
mirror_rake_tasks :long do |recipes|
|
36
36
|
recipes.options[:roles] = :app
|
37
37
|
recipes.cd { release_path }
|
38
38
|
recipes.env['RAILS_ENV'] = lambda { rails_env }
|
39
39
|
end
|
40
40
|
end
|
41
41
|
"""
|
42
|
-
When I run `cap
|
42
|
+
When I run `cap long`
|
43
43
|
Then the output should contain:
|
44
44
|
"""
|
45
|
-
* executing `
|
46
|
-
|
47
|
-
|
45
|
+
* executing `long'
|
46
|
+
"""
|
47
|
+
And the output should contain:
|
48
|
+
"""
|
49
|
+
`long' is only run for servers matching {:roles=>:app}, but no servers matched
|
48
50
|
"""
|
@@ -10,7 +10,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
10
10
|
And a Capfile with:
|
11
11
|
"""
|
12
12
|
Cape do
|
13
|
-
mirror_rake_tasks :
|
13
|
+
mirror_rake_tasks :long, :roles => :app do |env|
|
14
14
|
env['RAILS_ENV'] = rails_env
|
15
15
|
end
|
16
16
|
end
|
@@ -18,13 +18,13 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
18
18
|
When I run `cap -vT`
|
19
19
|
Then the output should contain:
|
20
20
|
"""
|
21
|
-
cap
|
21
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
22
22
|
"""
|
23
|
-
And the output should not contain "
|
23
|
+
And the output should not contain "with_one_arg"
|
24
24
|
And the output should not contain "my_namespace"
|
25
25
|
And the output should contain:
|
26
26
|
"""
|
27
|
-
*** DEPRECATED: `mirror_rake_tasks :
|
27
|
+
*** DEPRECATED: `mirror_rake_tasks :long, :roles => :app`. Use this instead: `mirror_rake_tasks(:long) { |recipes| recipes.options[:roles] = :app }`
|
28
28
|
"""
|
29
29
|
And the output should contain:
|
30
30
|
"""
|
@@ -36,7 +36,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
36
36
|
And a Capfile with:
|
37
37
|
"""
|
38
38
|
Cape do
|
39
|
-
mirror_rake_tasks :
|
39
|
+
mirror_rake_tasks :long do |recipes|
|
40
40
|
recipes.options[:roles] = :app
|
41
41
|
recipes.env['RAILS_ENV'] = lambda { rails_env }
|
42
42
|
end
|
@@ -45,9 +45,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
45
45
|
When I run `cap -vT`
|
46
46
|
Then the output should contain:
|
47
47
|
"""
|
48
|
-
cap
|
48
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
49
49
|
"""
|
50
|
-
And the output should not contain "
|
50
|
+
And the output should not contain "with_one_arg"
|
51
51
|
And the output should not contain "my_namespace"
|
52
52
|
And the output should not contain "DEPRECATED"
|
53
53
|
|
@@ -60,18 +60,20 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
60
60
|
set :rails_env, 'rails-env'
|
61
61
|
|
62
62
|
Cape do
|
63
|
-
mirror_rake_tasks '
|
63
|
+
mirror_rake_tasks 'long', :roles => :app do |env|
|
64
64
|
env['RAILS_ENV'] = rails_env
|
65
65
|
end
|
66
66
|
end
|
67
67
|
"""
|
68
|
-
When I run `cap
|
68
|
+
When I run `cap long`
|
69
69
|
Then the output should contain:
|
70
70
|
"""
|
71
|
-
*** DEPRECATED: `mirror_rake_tasks("
|
72
|
-
* executing `
|
73
|
-
|
74
|
-
|
71
|
+
*** DEPRECATED: `mirror_rake_tasks("long", :roles => :app) { |env| env["RAILS_ENV"] = "rails-env" }`. Use this instead: `mirror_rake_tasks("long") { |recipes| recipes.options[:roles] = :app; recipes.env["RAILS_ENV"] = "rails-env" }`
|
72
|
+
* executing `long'
|
73
|
+
"""
|
74
|
+
And the output should contain:
|
75
|
+
"""
|
76
|
+
`long' is only run for servers matching {:roles=>:app}, but no servers matched
|
75
77
|
"""
|
76
78
|
|
77
79
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -82,17 +84,19 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, valid options, a
|
|
82
84
|
set :rails_env, 'rails-env'
|
83
85
|
|
84
86
|
Cape do
|
85
|
-
mirror_rake_tasks '
|
87
|
+
mirror_rake_tasks 'long' do |recipes|
|
86
88
|
recipes.options[:roles] = :app
|
87
89
|
recipes.env['RAILS_ENV'] = lambda { rails_env }
|
88
90
|
end
|
89
91
|
end
|
90
92
|
"""
|
91
|
-
When I run `cap
|
93
|
+
When I run `cap long`
|
92
94
|
Then the output should contain:
|
93
95
|
"""
|
94
|
-
* executing `
|
95
|
-
|
96
|
-
|
96
|
+
* executing `long'
|
97
|
+
"""
|
98
|
+
And the output should contain:
|
99
|
+
"""
|
100
|
+
`long' is only run for servers matching {:roles=>:app}, but no servers matched
|
97
101
|
"""
|
98
102
|
And the output should not contain "DEPRECATED"
|
@@ -5,7 +5,7 @@ Feature: The #mirror_rake_tasks DSL method with environment variables
|
|
5
5
|
I want to use the Cape DSL.
|
6
6
|
|
7
7
|
@deprecated
|
8
|
-
Scenario: mirror
|
8
|
+
Scenario: mirror a Rake task (deprecated)
|
9
9
|
Given a full-featured Rakefile
|
10
10
|
And a Capfile with:
|
11
11
|
"""
|
@@ -21,7 +21,7 @@ Feature: The #mirror_rake_tasks DSL method with environment variables
|
|
21
21
|
*** DEPRECATED: Referencing Capistrano variables from Cape without wrapping them in a block, a lambda, or another callable object
|
22
22
|
"""
|
23
23
|
|
24
|
-
Scenario: mirror
|
24
|
+
Scenario: mirror a Rake task
|
25
25
|
Given a full-featured Rakefile
|
26
26
|
And a Capfile with:
|
27
27
|
"""
|
@@ -51,13 +51,15 @@ Feature: The #mirror_rake_tasks DSL method with environment variables
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
"""
|
54
|
-
When I run `cap
|
54
|
+
When I run `cap long`
|
55
55
|
Then the output should contain:
|
56
56
|
"""
|
57
57
|
*** DEPRECATED: `mirror_rake_tasks { |env| env["RAILS_ENV"] = "rails-env"; env[nil] = "foo"; env["FOO"] = nil; env["SOME_OTHER"] = "var" }`. Use this instead: `mirror_rake_tasks { |recipes| recipes.env["RAILS_ENV"] = "rails-env"; recipes.env[nil] = "foo"; recipes.env["FOO"] = nil; recipes.env["SOME_OTHER"] = "var" }`
|
58
|
-
* executing `
|
59
|
-
|
60
|
-
|
58
|
+
* executing `long'
|
59
|
+
"""
|
60
|
+
And the output should contain:
|
61
|
+
"""
|
62
|
+
`long' is only run for servers matching {}, but no servers matched
|
61
63
|
"""
|
62
64
|
|
63
65
|
Scenario: mirror a Rake task with its implementation
|
@@ -76,11 +78,13 @@ Feature: The #mirror_rake_tasks DSL method with environment variables
|
|
76
78
|
end
|
77
79
|
end
|
78
80
|
"""
|
79
|
-
When I run `cap
|
81
|
+
When I run `cap long`
|
80
82
|
Then the output should contain:
|
81
83
|
"""
|
82
|
-
* executing `
|
83
|
-
|
84
|
-
|
84
|
+
* executing `long'
|
85
|
+
"""
|
86
|
+
And the output should contain:
|
87
|
+
"""
|
88
|
+
`long' is only run for servers matching {}, but no servers matched
|
85
89
|
"""
|
86
90
|
And the output should not contain "DEPRECATED"
|
@@ -22,6 +22,8 @@ Feature: The #mirror_rake_tasks DSL method with renaming logic
|
|
22
22
|
Then the output should contain:
|
23
23
|
"""
|
24
24
|
* executing `do_load'
|
25
|
-
|
25
|
+
"""
|
26
|
+
And the output should contain:
|
27
|
+
"""
|
26
28
|
`do_load' is only run for servers matching {}, but no servers matched
|
27
29
|
"""
|
@@ -23,6 +23,8 @@ Feature: The #mirror_rake_tasks DSL method with renaming logic and a different d
|
|
23
23
|
Then the output should contain:
|
24
24
|
"""
|
25
25
|
* executing `do_load'
|
26
|
-
|
26
|
+
"""
|
27
|
+
And the output should contain:
|
28
|
+
"""
|
27
29
|
`do_load' is only run for servers matching {}, but no servers matched
|
28
30
|
"""
|
@@ -25,6 +25,8 @@ Feature: The #mirror_rake_tasks DSL method with renaming logic, a different dire
|
|
25
25
|
Then the output should contain:
|
26
26
|
"""
|
27
27
|
* executing `do_load'
|
28
|
-
|
28
|
+
"""
|
29
|
+
And the output should contain:
|
30
|
+
"""
|
29
31
|
`do_load' is only run for servers matching {}, but no servers matched
|
30
32
|
"""
|
@@ -24,6 +24,8 @@ Feature: The #mirror_rake_tasks DSL method with renaming logic and environment v
|
|
24
24
|
Then the output should contain:
|
25
25
|
"""
|
26
26
|
* executing `do_load'
|
27
|
-
|
27
|
+
"""
|
28
|
+
And the output should contain:
|
29
|
+
"""
|
28
30
|
`do_load' is only run for servers matching {}, but no servers matched
|
29
31
|
"""
|
@@ -23,6 +23,8 @@ Feature: The #mirror_rake_tasks DSL method with renaming logic and valid options
|
|
23
23
|
Then the output should contain:
|
24
24
|
"""
|
25
25
|
* executing `do_load'
|
26
|
-
|
26
|
+
"""
|
27
|
+
And the output should contain:
|
28
|
+
"""
|
27
29
|
`do_load' is only run for servers matching {:roles=>:app}, but no servers matched
|
28
30
|
"""
|
@@ -24,6 +24,8 @@ Feature: The #mirror_rake_tasks DSL method with renaming logic, valid options, a
|
|
24
24
|
Then the output should contain:
|
25
25
|
"""
|
26
26
|
* executing `do_load'
|
27
|
-
|
27
|
+
"""
|
28
|
+
And the output should contain:
|
29
|
+
"""
|
28
30
|
`do_load' is only run for servers matching {:roles=>:app}, but no servers matched
|
29
31
|
"""
|
@@ -26,6 +26,8 @@ Feature: The #mirror_rake_tasks DSL method with renaming logic, valid options, a
|
|
26
26
|
Then the output should contain:
|
27
27
|
"""
|
28
28
|
* executing `do_load'
|
29
|
-
|
29
|
+
"""
|
30
|
+
And the output should contain:
|
31
|
+
"""
|
30
32
|
`do_load' is only run for servers matching {:roles=>:app}, but no servers matched
|
31
33
|
"""
|
data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_environment_variables.feature
CHANGED
@@ -25,6 +25,8 @@ Feature: The #mirror_rake_tasks DSL method with renaming logic, valid options, a
|
|
25
25
|
Then the output should contain:
|
26
26
|
"""
|
27
27
|
* executing `do_load'
|
28
|
-
|
28
|
+
"""
|
29
|
+
And the output should contain:
|
30
|
+
"""
|
29
31
|
`do_load' is only run for servers matching {:roles=>:app}, but no servers matched
|
30
32
|
"""
|
@@ -9,8 +9,8 @@ Feature: The #mirror_rake_tasks DSL method with an undefined task or namespace
|
|
9
9
|
And a Capfile with:
|
10
10
|
"""
|
11
11
|
Cape do
|
12
|
-
mirror_rake_tasks '
|
12
|
+
mirror_rake_tasks 'lon'
|
13
13
|
end
|
14
14
|
"""
|
15
15
|
When I run `cap -vT`
|
16
|
-
Then the output should not contain "
|
16
|
+
Then the output should not contain "lon"
|