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
@@ -16,12 +16,14 @@ Feature: The #mirror_rake_tasks DSL method with a different directory
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
"""
|
19
|
-
When I run `cap
|
19
|
+
When I run `cap long`
|
20
20
|
Then the output should contain:
|
21
21
|
"""
|
22
|
-
* executing `
|
23
|
-
|
24
|
-
|
22
|
+
* executing `long'
|
23
|
+
"""
|
24
|
+
And the output should contain:
|
25
|
+
"""
|
26
|
+
`long' is only run for servers matching {}, but no servers matched
|
25
27
|
"""
|
26
28
|
|
27
29
|
Scenario: mirror a Rake task with its implementation, using a Capistrano variable inside a block
|
@@ -36,12 +38,14 @@ Feature: The #mirror_rake_tasks DSL method with a different directory
|
|
36
38
|
end
|
37
39
|
end
|
38
40
|
"""
|
39
|
-
When I run `cap
|
41
|
+
When I run `cap long`
|
40
42
|
Then the output should contain:
|
41
43
|
"""
|
42
|
-
* executing `
|
43
|
-
|
44
|
-
|
44
|
+
* executing `long'
|
45
|
+
"""
|
46
|
+
And the output should contain:
|
47
|
+
"""
|
48
|
+
`long' is only run for servers matching {}, but no servers matched
|
45
49
|
"""
|
46
50
|
|
47
51
|
Scenario: mirror a Rake task with its implementation, using a string
|
@@ -54,10 +58,12 @@ Feature: The #mirror_rake_tasks DSL method with a different directory
|
|
54
58
|
end
|
55
59
|
end
|
56
60
|
"""
|
57
|
-
When I run `cap
|
61
|
+
When I run `cap long`
|
58
62
|
Then the output should contain:
|
59
63
|
"""
|
60
|
-
* executing `
|
61
|
-
|
62
|
-
|
64
|
+
* executing `long'
|
65
|
+
"""
|
66
|
+
And the output should contain:
|
67
|
+
"""
|
68
|
+
`long' is only run for servers matching {}, but no servers matched
|
63
69
|
"""
|
@@ -18,10 +18,12 @@ Feature: The #mirror_rake_tasks DSL method with a different directory and enviro
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
"""
|
21
|
-
When I run `cap
|
21
|
+
When I run `cap long`
|
22
22
|
Then the output should contain:
|
23
23
|
"""
|
24
|
-
* executing `
|
25
|
-
|
26
|
-
|
24
|
+
* executing `long'
|
25
|
+
"""
|
26
|
+
And the output should contain:
|
27
|
+
"""
|
28
|
+
`long' is only run for servers matching {}, but no servers matched
|
27
29
|
"""
|
@@ -25,7 +25,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined namespace
|
|
25
25
|
"""
|
26
26
|
cap my_namespace:my_nested_namespace:in_a_nested_namespace # My task in a nested namespace.
|
27
27
|
"""
|
28
|
-
And the output should not contain "
|
28
|
+
And the output should not contain "long"
|
29
29
|
|
30
30
|
Scenario: mirror a Rake task that shadows the matching namespace with its implementation
|
31
31
|
Given a full-featured Rakefile
|
@@ -41,7 +41,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined namespace
|
|
41
41
|
Then the output should contain:
|
42
42
|
"""
|
43
43
|
* executing `my_namespace'
|
44
|
-
|
44
|
+
"""
|
45
|
+
And the output should contain:
|
46
|
+
"""
|
45
47
|
`my_namespace' is only run for servers matching {}, but no servers matched
|
46
48
|
"""
|
47
49
|
|
@@ -59,6 +61,8 @@ Feature: The #mirror_rake_tasks DSL method with a defined namespace
|
|
59
61
|
Then the output should contain:
|
60
62
|
"""
|
61
63
|
* executing `my_namespace:my_nested_namespace:in_a_nested_namespace'
|
62
|
-
|
64
|
+
"""
|
65
|
+
And the output should contain:
|
66
|
+
"""
|
63
67
|
`my_namespace:my_nested_namespace:in_a_nested_namespace' is only run for servers matching {}, but no servers matched
|
64
68
|
"""
|
@@ -9,15 +9,15 @@ Feature: The #mirror_rake_tasks DSL method with a defined task
|
|
9
9
|
And a Capfile with:
|
10
10
|
"""
|
11
11
|
Cape do
|
12
|
-
mirror_rake_tasks :
|
12
|
+
mirror_rake_tasks :long
|
13
13
|
end
|
14
14
|
"""
|
15
15
|
When I run `cap -vT`
|
16
16
|
Then the output should contain:
|
17
17
|
"""
|
18
|
-
cap
|
18
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
19
19
|
"""
|
20
|
-
And the output should not contain "
|
20
|
+
And the output should not contain "with_one_arg"
|
21
21
|
And the output should not contain "my_namespace"
|
22
22
|
|
23
23
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -27,13 +27,15 @@ Feature: The #mirror_rake_tasks DSL method with a defined task
|
|
27
27
|
set :current_path, '/current/path'
|
28
28
|
|
29
29
|
Cape do
|
30
|
-
mirror_rake_tasks '
|
30
|
+
mirror_rake_tasks 'long'
|
31
31
|
end
|
32
32
|
"""
|
33
|
-
When I run `cap
|
33
|
+
When I run `cap long`
|
34
34
|
Then the output should contain:
|
35
35
|
"""
|
36
|
-
* executing `
|
37
|
-
|
38
|
-
|
36
|
+
* executing `long'
|
37
|
+
"""
|
38
|
+
And the output should contain:
|
39
|
+
"""
|
40
|
+
`long' is only run for servers matching {}, but no servers matched
|
39
41
|
"""
|
@@ -9,7 +9,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and a different d
|
|
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.cd { release_path }
|
14
14
|
end
|
15
15
|
end
|
@@ -17,9 +17,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and a different d
|
|
17
17
|
When I run `cap -vT`
|
18
18
|
Then the output should contain:
|
19
19
|
"""
|
20
|
-
cap
|
20
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
21
21
|
"""
|
22
|
-
And the output should not contain "
|
22
|
+
And the output should not contain "with_one_arg"
|
23
23
|
And the output should not contain "my_namespace"
|
24
24
|
|
25
25
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -29,15 +29,17 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and a different d
|
|
29
29
|
set :release_path, '/release/path'
|
30
30
|
|
31
31
|
Cape do
|
32
|
-
mirror_rake_tasks :
|
32
|
+
mirror_rake_tasks :long do |recipes|
|
33
33
|
recipes.cd { release_path }
|
34
34
|
end
|
35
35
|
end
|
36
36
|
"""
|
37
|
-
When I run `cap
|
37
|
+
When I run `cap long`
|
38
38
|
Then the output should contain:
|
39
39
|
"""
|
40
|
-
* executing `
|
41
|
-
|
42
|
-
|
40
|
+
* executing `long'
|
41
|
+
"""
|
42
|
+
And the output should contain:
|
43
|
+
"""
|
44
|
+
`long' is only run for servers matching {}, but no servers matched
|
43
45
|
"""
|
data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd_and_environment_variables.feature
CHANGED
@@ -9,7 +9,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, a different dire
|
|
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.cd { release_path }
|
14
14
|
recipes.env['RAILS_ENV'] = lambda { rails_env }
|
15
15
|
end
|
@@ -18,9 +18,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, a different dire
|
|
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
|
@@ -31,16 +31,18 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, a different dire
|
|
31
31
|
set :rails_env, 'rails-env'
|
32
32
|
|
33
33
|
Cape do
|
34
|
-
mirror_rake_tasks :
|
34
|
+
mirror_rake_tasks :long do |recipes|
|
35
35
|
recipes.cd { release_path }
|
36
36
|
recipes.env['RAILS_ENV'] = lambda { rails_env }
|
37
37
|
end
|
38
38
|
end
|
39
39
|
"""
|
40
|
-
When I run `cap
|
40
|
+
When I run `cap long`
|
41
41
|
Then the output should contain:
|
42
42
|
"""
|
43
|
-
* executing `
|
44
|
-
|
45
|
-
|
43
|
+
* executing `long'
|
44
|
+
"""
|
45
|
+
And the output should contain:
|
46
|
+
"""
|
47
|
+
`long' is only run for servers matching {}, but no servers matched
|
46
48
|
"""
|
@@ -10,7 +10,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and environment v
|
|
10
10
|
And a Capfile with:
|
11
11
|
"""
|
12
12
|
Cape do
|
13
|
-
mirror_rake_tasks :
|
13
|
+
mirror_rake_tasks :long do |env|
|
14
14
|
env['RAILS_ENV'] = rails_env
|
15
15
|
end
|
16
16
|
end
|
@@ -18,9 +18,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and environment v
|
|
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
|
"""
|
@@ -32,7 +32,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and environment v
|
|
32
32
|
And a Capfile with:
|
33
33
|
"""
|
34
34
|
Cape do
|
35
|
-
mirror_rake_tasks :
|
35
|
+
mirror_rake_tasks :long do |recipes|
|
36
36
|
recipes.env['RAILS_ENV'] = lambda { rails_env }
|
37
37
|
end
|
38
38
|
end
|
@@ -40,9 +40,9 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and environment v
|
|
40
40
|
When I run `cap -vT`
|
41
41
|
Then the output should contain:
|
42
42
|
"""
|
43
|
-
cap
|
43
|
+
cap long # My long task -- it has a very, very, very, very, very, very, ver...
|
44
44
|
"""
|
45
|
-
And the output should not contain "
|
45
|
+
And the output should not contain "with_one_arg"
|
46
46
|
And the output should not contain "my_namespace"
|
47
47
|
And the output should not contain "DEPRECATED"
|
48
48
|
|
@@ -55,18 +55,20 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and environment v
|
|
55
55
|
set :rails_env, 'rails-env'
|
56
56
|
|
57
57
|
Cape do
|
58
|
-
mirror_rake_tasks '
|
58
|
+
mirror_rake_tasks 'long' do |env|
|
59
59
|
env['RAILS_ENV'] = rails_env
|
60
60
|
end
|
61
61
|
end
|
62
62
|
"""
|
63
|
-
When I run `cap
|
63
|
+
When I run `cap long`
|
64
64
|
Then the output should contain:
|
65
65
|
"""
|
66
|
-
*** DEPRECATED: `mirror_rake_tasks("
|
67
|
-
* executing `
|
68
|
-
|
69
|
-
|
66
|
+
*** DEPRECATED: `mirror_rake_tasks("long") { |env| env["RAILS_ENV"] = "rails-env" }`. Use this instead: `mirror_rake_tasks("long") { |recipes| recipes.env["RAILS_ENV"] = "rails-env" }`
|
67
|
+
* executing `long'
|
68
|
+
"""
|
69
|
+
And the output should contain:
|
70
|
+
"""
|
71
|
+
`long' is only run for servers matching {}, but no servers matched
|
70
72
|
"""
|
71
73
|
|
72
74
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -77,16 +79,18 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and environment v
|
|
77
79
|
set :rails_env, 'rails-env'
|
78
80
|
|
79
81
|
Cape do
|
80
|
-
mirror_rake_tasks '
|
82
|
+
mirror_rake_tasks 'long' do |recipes|
|
81
83
|
recipes.env['RAILS_ENV'] = lambda { rails_env }
|
82
84
|
end
|
83
85
|
end
|
84
86
|
"""
|
85
|
-
When I run `cap
|
87
|
+
When I run `cap long`
|
86
88
|
Then the output should contain:
|
87
89
|
"""
|
88
|
-
* executing `
|
89
|
-
|
90
|
-
|
90
|
+
* executing `long'
|
91
|
+
"""
|
92
|
+
And the output should contain:
|
93
|
+
"""
|
94
|
+
`long' is only run for servers matching {}, but no servers matched
|
91
95
|
"""
|
92
96
|
And the output should not contain "DEPRECATED"
|
@@ -21,7 +21,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and renaming logi
|
|
21
21
|
"""
|
22
22
|
cap do_load # A task that shadows a Ruby method.
|
23
23
|
"""
|
24
|
-
And the output should not contain "
|
24
|
+
And the output should not contain "long"
|
25
25
|
And the output should not contain "my_namespace"
|
26
26
|
|
27
27
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -42,6 +42,8 @@ Feature: The #mirror_rake_tasks DSL method with a defined task and renaming logi
|
|
42
42
|
Then the output should contain:
|
43
43
|
"""
|
44
44
|
* executing `do_load'
|
45
|
-
|
45
|
+
"""
|
46
|
+
And the output should contain:
|
47
|
+
"""
|
46
48
|
`do_load' is only run for servers matching {}, but no servers matched
|
47
49
|
"""
|
@@ -22,7 +22,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
22
22
|
"""
|
23
23
|
cap do_load # A task that shadows a Ruby method.
|
24
24
|
"""
|
25
|
-
And the output should not contain "
|
25
|
+
And the output should not contain "long"
|
26
26
|
And the output should not contain "my_namespace"
|
27
27
|
|
28
28
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -44,6 +44,8 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
44
44
|
Then the output should contain:
|
45
45
|
"""
|
46
46
|
* executing `do_load'
|
47
|
-
|
47
|
+
"""
|
48
|
+
And the output should contain:
|
49
|
+
"""
|
48
50
|
`do_load' is only run for servers matching {}, but no servers matched
|
49
51
|
"""
|
@@ -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 {}, but no servers matched
|
52
54
|
"""
|
data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_environment_variables.feature
CHANGED
@@ -22,7 +22,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
22
22
|
"""
|
23
23
|
cap do_load # A task that shadows a Ruby method.
|
24
24
|
"""
|
25
|
-
And the output should not contain "
|
25
|
+
And the output should not contain "long"
|
26
26
|
And the output should not contain "my_namespace"
|
27
27
|
|
28
28
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -45,6 +45,8 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
45
45
|
Then the output should contain:
|
46
46
|
"""
|
47
47
|
* executing `do_load'
|
48
|
-
|
48
|
+
"""
|
49
|
+
And the output should contain:
|
50
|
+
"""
|
49
51
|
`do_load' is only run for servers matching {}, but no servers matched
|
50
52
|
"""
|
@@ -22,7 +22,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
22
22
|
"""
|
23
23
|
cap do_load # A task that shadows a Ruby method.
|
24
24
|
"""
|
25
|
-
And the output should not contain "
|
25
|
+
And the output should not contain "long"
|
26
26
|
And the output should not contain "my_namespace"
|
27
27
|
|
28
28
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -44,6 +44,8 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
44
44
|
Then the output should contain:
|
45
45
|
"""
|
46
46
|
* executing `do_load'
|
47
|
-
|
47
|
+
"""
|
48
|
+
And the output should contain:
|
49
|
+
"""
|
48
50
|
`do_load' is only run for servers matching {:roles=>:app}, but no servers matched
|
49
51
|
"""
|
data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd.feature
CHANGED
@@ -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
|
@@ -46,6 +46,8 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
46
46
|
Then the output should contain:
|
47
47
|
"""
|
48
48
|
* executing `do_load'
|
49
|
-
|
49
|
+
"""
|
50
|
+
And the output should contain:
|
51
|
+
"""
|
50
52
|
`do_load' is only run for servers matching {:roles=>:app}, but no servers matched
|
51
53
|
"""
|
@@ -24,7 +24,7 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
24
24
|
"""
|
25
25
|
cap do_load # A task that shadows a Ruby method.
|
26
26
|
"""
|
27
|
-
And the output should not contain "
|
27
|
+
And the output should not contain "long"
|
28
28
|
And the output should not contain "my_namespace"
|
29
29
|
|
30
30
|
Scenario: mirror the matching Rake task with its implementation
|
@@ -49,6 +49,8 @@ Feature: The #mirror_rake_tasks DSL method with a defined task, renaming logic,
|
|
49
49
|
Then the output should contain:
|
50
50
|
"""
|
51
51
|
* executing `do_load'
|
52
|
-
|
52
|
+
"""
|
53
|
+
And the output should contain:
|
54
|
+
"""
|
53
55
|
`do_load' is only run for servers matching {:roles=>:app}, but no servers matched
|
54
56
|
"""
|