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
@@ -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 /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\""
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 :with_period, :roles => :app
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 with_period # Ends with period.
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 "without_period"
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 :with_period, :roles => :app`. Use this instead: `mirror_rake_tasks(:with_period) { |recipes| recipes.options[:roles] = :app }`
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 :with_period do |recipes|
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 with_period # Ends with period.
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 "without_period"
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 'with_period', :roles => :app
55
+ mirror_rake_tasks 'long', :roles => :app
56
56
  end
57
57
  """
58
- When I run `cap with_period`
58
+ When I run `cap long`
59
59
  Then the output should contain:
60
60
  """
61
- *** DEPRECATED: `mirror_rake_tasks "with_period", :roles => :app`. Use this instead: `mirror_rake_tasks("with_period") { |recipes| recipes.options[:roles] = :app }`
62
- * executing `with_period'
63
- * 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"
64
- `with_period' is only run for servers matching {:roles=>:app}, but no servers matched
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 'with_period' do |recipes|
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 with_period`
81
+ When I run `cap long`
80
82
  Then the output should contain:
81
83
  """
82
- * executing `with_period'
83
- * 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"
84
- `with_period' is only run for servers matching {:roles=>:app}, but no servers matched
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 :with_period do |recipes|
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 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
@@ -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 :with_period do |recipes|
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 with_period`
39
+ When I run `cap long`
40
40
  Then the output should contain:
41
41
  """
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 {:roles=>:app}, but no servers matched
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 :with_period do |recipes|
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 with_period # Ends with period.
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 "without_period"
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 :with_period do |recipes|
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 with_period`
42
+ When I run `cap long`
43
43
  Then the output should contain:
44
44
  """
45
- * executing `with_period'
46
- * 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\""
47
- `with_period' is only run for servers matching {:roles=>:app}, but no servers matched
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 :with_period, :roles => :app do |env|
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 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
  """
27
- *** DEPRECATED: `mirror_rake_tasks :with_period, :roles => :app`. Use this instead: `mirror_rake_tasks(:with_period) { |recipes| recipes.options[:roles] = :app }`
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 :with_period do |recipes|
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 with_period # Ends with period.
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 "without_period"
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 'with_period', :roles => :app do |env|
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 with_period`
68
+ When I run `cap long`
69
69
  Then the output should contain:
70
70
  """
71
- *** DEPRECATED: `mirror_rake_tasks("with_period", :roles => :app) { |env| env["RAILS_ENV"] = "rails-env" }`. Use this instead: `mirror_rake_tasks("with_period") { |recipes| recipes.options[:roles] = :app; recipes.env["RAILS_ENV"] = "rails-env" }`
72
- * executing `with_period'
73
- * 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\""
74
- `with_period' is only run for servers matching {:roles=>:app}, but no servers matched
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 'with_period' do |recipes|
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 with_period`
93
+ When I run `cap long`
92
94
  Then the output should contain:
93
95
  """
94
- * executing `with_period'
95
- * 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\""
96
- `with_period' is only run for servers matching {:roles=>:app}, but no servers matched
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 only the matching Rake task (deprecated)
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 only the matching Rake task
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 with_period`
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 `with_period'
59
- * 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\" SOME_OTHER=\"var\""
60
- `with_period' is only run for servers matching {}, but no servers matched
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 with_period`
81
+ When I run `cap long`
80
82
  Then the output should contain:
81
83
  """
82
- * executing `with_period'
83
- * 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\" SOME_OTHER=\"var\""
84
- `with_period' is only run for servers matching {}, but no servers matched
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
- * 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"
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
- * 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"
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
- * 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\""
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
- * 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\""
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
- * 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"
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
- * 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"
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
- * 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\""
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
  """
@@ -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
- * 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\""
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 'period'
12
+ mirror_rake_tasks 'lon'
13
13
  end
14
14
  """
15
15
  When I run `cap -vT`
16
- Then the output should not contain "period"
16
+ Then the output should not contain "lon"