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.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -1
  3. data/.rspec +1 -1
  4. data/.travis.yml +6 -2
  5. data/Appraisals +11 -0
  6. data/Gemfile +4 -4
  7. data/Guardfile +10 -4
  8. data/History.markdown +6 -0
  9. data/README.markdown +32 -17
  10. data/Rakefile +33 -13
  11. data/cape.gemspec +6 -2
  12. data/features/dsl/each_rake_task/unqualified.feature +0 -6
  13. data/features/dsl/each_rake_task/with_defined_namespace.feature +1 -1
  14. data/features/dsl/each_rake_task/with_defined_task.feature +4 -4
  15. data/features/dsl/each_rake_task/with_undefined_task_or_namespace.feature +2 -2
  16. data/features/dsl/mirror_rake_tasks/inside_capistrano_namespace.feature +3 -4
  17. data/features/dsl/mirror_rake_tasks/unqualified.feature +89 -32
  18. data/features/dsl/mirror_rake_tasks/with_cd.feature +18 -12
  19. data/features/dsl/mirror_rake_tasks/with_cd_and_environment_variables.feature +6 -4
  20. data/features/dsl/mirror_rake_tasks/with_defined_namespace.feature +7 -3
  21. data/features/dsl/mirror_rake_tasks/with_defined_task.feature +10 -8
  22. data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd.feature +10 -8
  23. data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd_and_environment_variables.feature +10 -8
  24. data/features/dsl/mirror_rake_tasks/with_defined_task_and_environment_variables.feature +21 -17
  25. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename.feature +4 -2
  26. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd.feature +4 -2
  27. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd_and_environment_variables.feature +4 -2
  28. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_environment_variables.feature +4 -2
  29. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options.feature +4 -2
  30. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd.feature +4 -2
  31. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd_and_environment_variables.feature +4 -2
  32. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_environment_variables.feature +4 -2
  33. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options.feature +22 -18
  34. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd.feature +10 -8
  35. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd_and_environment_variables.feature +10 -8
  36. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_environment_variables.feature +22 -18
  37. data/features/dsl/mirror_rake_tasks/with_environment_variables.feature +14 -10
  38. data/features/dsl/mirror_rake_tasks/with_rename.feature +3 -1
  39. data/features/dsl/mirror_rake_tasks/with_rename_and_cd.feature +3 -1
  40. data/features/dsl/mirror_rake_tasks/with_rename_and_cd_and_environment_variables.feature +3 -1
  41. data/features/dsl/mirror_rake_tasks/with_rename_and_environment_variables.feature +3 -1
  42. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options.feature +3 -1
  43. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd.feature +3 -1
  44. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd_and_environment_variables.feature +3 -1
  45. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_environment_variables.feature +3 -1
  46. data/features/dsl/mirror_rake_tasks/with_undefined_task_or_namespace.feature +2 -2
  47. data/features/dsl/mirror_rake_tasks/with_valid_options.feature +12 -8
  48. data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd.feature +6 -4
  49. data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd_and_environment_variables.feature +6 -4
  50. data/features/dsl/mirror_rake_tasks/with_valid_options_and_environment_variables.feature +14 -10
  51. data/features/dsl/rake_executable.feature +1 -6
  52. data/features/step_definitions.rb +0 -12
  53. data/gemfiles/capistrano_v2.x.gemfile +7 -0
  54. data/gemfiles/capistrano_v2.x.gemfile.lock +66 -0
  55. data/gemfiles/rake_v0.9.3.gemfile +7 -0
  56. data/gemfiles/rake_v0.9.3.gemfile.lock +66 -0
  57. data/gemfiles/rake_v10.x.gemfile +7 -0
  58. data/gemfiles/rake_v10.x.gemfile.lock +66 -0
  59. data/lib/cape/capistrano.rb +39 -29
  60. data/lib/cape/version.rb +1 -1
  61. data/lib/cape/xterm.rb +1 -1
  62. data/spec/cape/capistrano_spec.rb +13 -3
  63. data/spec/cape/core_ext/hash_spec.rb +5 -5
  64. data/spec/cape/core_ext/symbol_spec.rb +10 -8
  65. data/spec/cape/deprecation/base_sharedspec.rb +6 -2
  66. data/spec/cape/deprecation/capistrano_deprecated_define_rake_wrapper_spec.rb +123 -101
  67. data/spec/cape/deprecation/dsl_deprecated_mirror_rake_tasks_spec.rb +119 -97
  68. data/spec/cape/dsl_deprecated_spec.rb +128 -134
  69. data/spec/cape/dsl_spec.rb +56 -63
  70. data/spec/cape/hash_list_spec.rb +40 -20
  71. data/spec/cape/rake_spec.rb +59 -51
  72. data/spec/cape/recipe_definition_spec.rb +44 -32
  73. data/spec/cape/util_spec.rb +18 -18
  74. data/spec/cape/version_spec.rb +1 -1
  75. data/spec/cape/xterm_spec.rb +33 -33
  76. data/spec/cape_spec.rb +9 -7
  77. data/spec/spec_helper.rb +5 -1
  78. 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 with_period`
19
+ When I run `cap long`
20
20
  Then the output should contain:
21
21
  """
22
- * executing `with_period'
23
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period"
24
- `with_period' is only run for servers matching {}, but no servers matched
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 with_period`
41
+ When I run `cap long`
40
42
  Then the output should contain:
41
43
  """
42
- * executing `with_period'
43
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period"
44
- `with_period' is only run for servers matching {}, but no servers matched
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 with_period`
61
+ When I run `cap long`
58
62
  Then the output should contain:
59
63
  """
60
- * executing `with_period'
61
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period"
62
- `with_period' is only run for servers matching {}, but no servers matched
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 with_period`
21
+ When I run `cap long`
22
22
  Then the output should contain:
23
23
  """
24
- * executing `with_period'
25
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period RAILS_ENV=\"rails-env\""
26
- `with_period' is only run for servers matching {}, but no servers matched
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 "period"
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
- * executing "cd /current/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake my_namespace"
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
- * executing "cd /current/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake my_namespace:my_nested_namespace:in_a_nested_namespace"
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 :with_period
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 with_period # Ends with period.
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 "without_period"
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 'with_period'
30
+ mirror_rake_tasks 'long'
31
31
  end
32
32
  """
33
- When I run `cap with_period`
33
+ When I run `cap long`
34
34
  Then the output should contain:
35
35
  """
36
- * executing `with_period'
37
- * executing "cd /current/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period"
38
- `with_period' is only run for servers matching {}, but no servers matched
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 :with_period do |recipes|
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 with_period # Ends with period.
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 "without_period"
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 :with_period do |recipes|
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 with_period`
37
+ When I run `cap long`
38
38
  Then the output should contain:
39
39
  """
40
- * executing `with_period'
41
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period"
42
- `with_period' is only run for servers matching {}, but no servers matched
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
  """
@@ -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 :with_period do |recipes|
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 with_period # Ends with period.
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 "without_period"
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 :with_period do |recipes|
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 with_period`
40
+ When I run `cap long`
41
41
  Then the output should contain:
42
42
  """
43
- * executing `with_period'
44
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period RAILS_ENV=\"rails-env\""
45
- `with_period' is only run for servers matching {}, but no servers matched
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 :with_period do |env|
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 with_period # Ends with period.
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 "without_period"
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 :with_period do |recipes|
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 with_period # Ends with period.
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 "without_period"
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 'with_period' do |env|
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 with_period`
63
+ When I run `cap long`
64
64
  Then the output should contain:
65
65
  """
66
- *** DEPRECATED: `mirror_rake_tasks("with_period") { |env| env["RAILS_ENV"] = "rails-env" }`. Use this instead: `mirror_rake_tasks("with_period") { |recipes| recipes.env["RAILS_ENV"] = "rails-env" }`
67
- * executing `with_period'
68
- * executing "cd /current/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period RAILS_ENV=\"rails-env\""
69
- `with_period' is only run for servers matching {}, but no servers matched
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 'with_period' do |recipes|
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 with_period`
87
+ When I run `cap long`
86
88
  Then the output should contain:
87
89
  """
88
- * executing `with_period'
89
- * executing "cd /current/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake with_period RAILS_ENV=\"rails-env\""
90
- `with_period' is only run for servers matching {}, but no servers matched
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 "period"
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
- * executing "cd /current/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake load"
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 "period"
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
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake load"
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 "period"
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
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake load RAILS_ENV=\"rails-env\""
50
+ """
51
+ And the output should contain:
52
+ """
51
53
  `do_load' is only run for servers matching {}, but no servers matched
52
54
  """
@@ -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 "period"
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
- * executing "cd /current/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake load RAILS_ENV=\"rails-env\""
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 "period"
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
- * executing "cd /current/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake load"
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
  """
@@ -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 "period"
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
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake load"
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 "period"
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
- * executing "cd /release/path && /usr/bin/env `/usr/bin/env bundle check >/dev/null 2>&1; case $? in 0|1 ) echo bundle exec ;; esac` rake load RAILS_ENV=\"rails-env\""
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
  """