cape 1.6.2 → 1.7.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 (72) hide show
  1. data/Gemfile +7 -6
  2. data/Guardfile +29 -10
  3. data/History.markdown +4 -0
  4. data/README.markdown +38 -9
  5. data/Rakefile +35 -8
  6. data/features/dsl/each_rake_task/{without_arguments.feature → unqualified.feature} +16 -37
  7. data/features/dsl/each_rake_task/{with_defined_namespace_argument.feature → with_defined_namespace.feature} +2 -13
  8. data/features/dsl/each_rake_task/{with_defined_task_argument.feature → with_defined_task.feature} +2 -6
  9. data/features/dsl/each_rake_task/with_undefined_task_or_namespace.feature +24 -0
  10. data/features/dsl/mirror_rake_tasks/inside_capistrano_namespace.feature +2 -2
  11. data/features/dsl/mirror_rake_tasks/{without_arguments.feature → unqualified.feature} +15 -11
  12. data/features/dsl/mirror_rake_tasks/with_cd.feature +63 -0
  13. data/features/dsl/mirror_rake_tasks/with_cd_and_environment_variables.feature +27 -0
  14. data/features/dsl/mirror_rake_tasks/{with_defined_namespace_argument.feature → with_defined_namespace.feature} +6 -8
  15. data/features/dsl/mirror_rake_tasks/{with_defined_task_argument.feature → with_defined_task.feature} +4 -4
  16. data/features/dsl/mirror_rake_tasks/{with_defined_task_argument_and_environment_variables.feature → with_defined_task_and_cd.feature} +8 -8
  17. data/features/dsl/mirror_rake_tasks/with_defined_task_and_cd_and_environment_variables.feature +46 -0
  18. data/features/dsl/mirror_rake_tasks/with_defined_task_and_environment_variables.feature +92 -0
  19. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename.feature +47 -0
  20. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd.feature +49 -0
  21. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd_and_environment_variables.feature +52 -0
  22. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_environment_variables.feature +50 -0
  23. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options.feature +49 -0
  24. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd.feature +51 -0
  25. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd_and_environment_variables.feature +54 -0
  26. data/features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_environment_variables.feature +52 -0
  27. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options.feature +53 -6
  28. data/features/dsl/mirror_rake_tasks/{with_defined_task_and_valid_options_arguments_and_environment_variables.feature → with_defined_task_and_valid_options_and_cd.feature} +10 -8
  29. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd_and_environment_variables.feature +48 -0
  30. data/features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_environment_variables.feature +98 -0
  31. data/features/dsl/mirror_rake_tasks/with_environment_variables.feature +61 -4
  32. data/features/dsl/mirror_rake_tasks/with_rename.feature +27 -0
  33. data/features/dsl/mirror_rake_tasks/with_rename_and_cd.feature +28 -0
  34. data/features/dsl/mirror_rake_tasks/with_rename_and_cd_and_environment_variables.feature +30 -0
  35. data/features/dsl/mirror_rake_tasks/with_rename_and_environment_variables.feature +29 -0
  36. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options.feature +28 -0
  37. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd.feature +29 -0
  38. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd_and_environment_variables.feature +31 -0
  39. data/features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_environment_variables.feature +30 -0
  40. data/features/dsl/mirror_rake_tasks/{with_undefined_argument.feature → with_undefined_task_or_namespace.feature} +3 -4
  41. data/features/dsl/mirror_rake_tasks/with_valid_options.feature +46 -0
  42. data/features/dsl/mirror_rake_tasks/{with_valid_options_argument.feature → with_valid_options_and_cd.feature} +7 -5
  43. data/features/dsl/mirror_rake_tasks/with_valid_options_and_cd_and_environment_variables.feature +28 -0
  44. data/features/dsl/mirror_rake_tasks/with_valid_options_and_environment_variables.feature +51 -0
  45. data/features/dsl/rake_executable.feature +2 -2
  46. data/features/step_definitions.rb +40 -0
  47. data/lib/cape.rb +2 -0
  48. data/lib/cape/capistrano.rb +59 -32
  49. data/lib/cape/capistrano_deprecated.rb +165 -0
  50. data/lib/cape/core_ext.rb +2 -0
  51. data/lib/cape/deprecation.rb +12 -0
  52. data/lib/cape/deprecation/base.rb +59 -0
  53. data/lib/cape/deprecation/capistrano_deprecated_define_rake_wrapper.rb +168 -0
  54. data/lib/cape/deprecation/dsl_deprecated_mirror_rake_tasks.rb +145 -0
  55. data/lib/cape/dsl.rb +49 -60
  56. data/lib/cape/dsl_deprecated.rb +157 -0
  57. data/lib/cape/hash_list.rb +2 -0
  58. data/lib/cape/recipe_definition.rb +103 -0
  59. data/lib/cape/recipe_definition_deprecated.rb +41 -0
  60. data/lib/cape/util.rb +2 -0
  61. data/lib/cape/version.rb +1 -1
  62. data/lib/cape/xterm.rb +326 -0
  63. data/spec/cape/deprecation/base_sharedspec.rb +18 -0
  64. data/spec/cape/deprecation/capistrano_deprecated_define_rake_wrapper_spec.rb +157 -0
  65. data/spec/cape/deprecation/dsl_deprecated_mirror_rake_tasks_spec.rb +153 -0
  66. data/spec/cape/dsl_deprecated_spec.rb +307 -0
  67. data/spec/cape/dsl_spec.rb +10 -43
  68. data/spec/cape/recipe_definition_spec.rb +53 -0
  69. data/spec/cape/xterm_spec.rb +72 -0
  70. metadata +97 -28
  71. data/features/dsl/each_rake_task/with_undefined_argument.feature +0 -53
  72. data/features/dsl/mirror_rake_tasks/with_valid_options_arguments_and_environment_variables.feature +0 -26
@@ -57,13 +57,12 @@ describe Cape::DSL do
57
57
  lambda {
58
58
  do_mirror_rake_tasks task_expression, task_expression
59
59
  }.should raise_error(ArgumentError,
60
- 'wrong number of arguments (2 for 0 or 1, plus ' +
61
- 'an options hash)')
60
+ 'wrong number of arguments (2 for 1)')
62
61
  end
63
62
  end
64
63
 
65
- shared_examples_for 'a successful call' do |task_expression_in_use,
66
- options_in_use|
64
+ shared_examples_for "a successful call (#{Cape::DSL.name})" do |task_expression_in_use,
65
+ options_in_use|
67
66
  specify 'by collecting Rake#each_task' do
68
67
  mock_rake.should_receive(:each_task).with task_expression_in_use
69
68
  do_mirror_rake_tasks
@@ -113,42 +112,6 @@ describe Cape::DSL do
113
112
  end
114
113
  end
115
114
 
116
- describe 'with one scalar argument, an options hash, and a block --' do
117
- def do_mirror_rake_tasks
118
- super 'task:expression', :bar => :baz do |env|
119
- env['AN_ENV_VAR'] = 'an environment variable'
120
- end
121
- end
122
-
123
- should_behave_like 'a successful call', 'task:expression', :bar => :baz
124
- end
125
-
126
- describe 'with one scalar argument and an options hash --' do
127
- def do_mirror_rake_tasks
128
- super 'task:expression', :bar => :baz
129
- end
130
-
131
- should_behave_like 'a successful call', 'task:expression', :bar => :baz
132
- end
133
-
134
- describe 'with an options hash and a block --' do
135
- def do_mirror_rake_tasks
136
- super :bar => :baz do |env|
137
- env['AN_ENV_VAR'] = 'an environment variable'
138
- end
139
- end
140
-
141
- should_behave_like 'a successful call', nil, :bar => :baz
142
- end
143
-
144
- describe 'with an options hash --' do
145
- def do_mirror_rake_tasks
146
- super :bar => :baz
147
- end
148
-
149
- should_behave_like 'a successful call', nil, :bar => :baz
150
- end
151
-
152
115
  describe 'with one scalar argument and a block --' do
153
116
  def do_mirror_rake_tasks
154
117
  super 'task:expression' do |env|
@@ -156,7 +119,9 @@ describe Cape::DSL do
156
119
  end
157
120
  end
158
121
 
159
- should_behave_like('a successful call', 'task:expression', {})
122
+ should_behave_like("a successful call (#{Cape::DSL.name})",
123
+ 'task:expression',
124
+ {})
160
125
  end
161
126
 
162
127
  describe 'with one scalar argument --' do
@@ -164,7 +129,9 @@ describe Cape::DSL do
164
129
  super 'task:expression'
165
130
  end
166
131
 
167
- should_behave_like('a successful call', 'task:expression', {})
132
+ should_behave_like("a successful call (#{Cape::DSL.name})",
133
+ 'task:expression',
134
+ {})
168
135
  end
169
136
 
170
137
  describe 'without arguments --' do
@@ -172,7 +139,7 @@ describe Cape::DSL do
172
139
  super
173
140
  end
174
141
 
175
- should_behave_like('a successful call', nil, {})
142
+ should_behave_like("a successful call (#{Cape::DSL.name})", nil, {})
176
143
  end
177
144
  end
178
145
 
@@ -0,0 +1,53 @@
1
+ require 'cape/recipe_definition'
2
+
3
+ describe Cape::RecipeDefinition do
4
+ its(:cd) { should be_nil }
5
+
6
+ it 'should have a mutable #cd' do
7
+ subject.cd '/foo/bar'
8
+ subject.cd.should == '/foo/bar'
9
+
10
+ subject.cd lambda { '/foo/bar' }
11
+ subject.cd.call.should == '/foo/bar'
12
+
13
+ subject.cd { '/foo/bar' }
14
+ subject.cd.call.should == '/foo/bar'
15
+ end
16
+
17
+ it 'should complain about a #cd with the wrong arity' do
18
+ expect {
19
+ subject.cd do |foo, bar|
20
+ end
21
+ }.to raise_error(ArgumentError, 'Must have 0 parameters but has 2')
22
+ end
23
+
24
+ its(:env) { should == {} }
25
+
26
+ it 'should have a mutable #env' do
27
+ subject.env['FOO'] = 'bar'
28
+ subject.env.should == {'FOO' => 'bar'}
29
+ end
30
+
31
+ its(:options) { should == {} }
32
+
33
+ it 'should have mutable #options' do
34
+ subject.options[:some_option] = 'foo'
35
+ subject.options.should == {:some_option => 'foo'}
36
+ end
37
+
38
+ its(:rename) { should be_nil }
39
+
40
+ it 'should have a mutable #rename' do
41
+ subject.rename do |task_name|
42
+ "#{task_name}_recipe"
43
+ end
44
+ subject.rename.call(:foo).should == 'foo_recipe'
45
+ end
46
+
47
+ it 'should complain about a #rename with the wrong arity' do
48
+ expect {
49
+ subject.rename do |foo, bar|
50
+ end
51
+ }.to raise_error(ArgumentError, 'Must have 1 parameter but has 2')
52
+ end
53
+ end
@@ -0,0 +1,72 @@
1
+ require 'spec_helper'
2
+ require 'cape/xterm'
3
+
4
+ describe Cape::XTerm do
5
+ describe '.format' do
6
+ it 'should not try to format a nil argument' do
7
+ described_class.format(nil).should be_nil
8
+ end
9
+
10
+ it 'should not try to format a nil argument with a recognized format' do
11
+ described_class.format(nil, :bold).should be_nil
12
+ end
13
+
14
+ it 'should complain about an unrecognized format' do
15
+ expect {
16
+ described_class.format nil, :this_does_not_exist
17
+ }.to raise_error(ArgumentError, 'Unrecognized format :this_does_not_exist')
18
+ expect {
19
+ described_class.format 'foo', :this_does_not_exist
20
+ }.to raise_error(ArgumentError, 'Unrecognized format :this_does_not_exist')
21
+ end
22
+
23
+ described_class::FORMATS.each do |format, code|
24
+ it "should format a String argument with the #{format.inspect} format" do
25
+ described_class.format('foo', format).should == "\e[#{code}mfoo\e[0m"
26
+ end
27
+ end
28
+
29
+ it "should format a String argument with the :bold and :foreground_red formats" do
30
+ described_class.format('foo',
31
+ :bold,
32
+ :foreground_red).should == "\e[1;31mfoo\e[0m"
33
+ end
34
+ end
35
+
36
+ it 'should not respond to :this_does_not_exist' do
37
+ described_class.should_not respond_to(:this_does_not_exist)
38
+ end
39
+
40
+ it '.this_does_not_exist should complain' do
41
+ expect {
42
+ described_class.this_does_not_exist
43
+ }.to raise_error(NoMethodError,
44
+ "undefined method `this_does_not_exist' for #{described_class.name}:Module")
45
+ end
46
+
47
+ described_class::FORMATS.each do |format, code|
48
+ it "should respond to .#{format.inspect}" do
49
+ described_class.should respond_to(format)
50
+ end
51
+
52
+ describe ".#{format}" do
53
+ it "should format a String argument with the #{format.inspect} format" do
54
+ described_class.send(format,
55
+ 'foo').should == described_class.format('foo',
56
+ format)
57
+ end
58
+ end
59
+ end
60
+
61
+ it 'should respond to .bold_and_foreground_red' do
62
+ described_class.should respond_to(:bold_and_foreground_red)
63
+ end
64
+
65
+ describe '.bold_and_foreground_red' do
66
+ it "should format a String argument with the :bold and :foreground_red formats" do
67
+ described_class.bold_and_foreground_red('foo').should == described_class.format('foo',
68
+ :bold,
69
+ :foreground_red)
70
+ end
71
+ end
72
+ end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 6
9
- - 2
10
- version: 1.6.2
8
+ - 7
9
+ - 0
10
+ version: 1.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nils Jonsson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-22 00:00:00 Z
18
+ date: 2013-03-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: aruba
@@ -99,42 +99,81 @@ files:
99
99
  - README.markdown
100
100
  - Rakefile
101
101
  - cape.gemspec
102
- - features/dsl/each_rake_task/with_defined_namespace_argument.feature
103
- - features/dsl/each_rake_task/with_defined_task_argument.feature
104
- - features/dsl/each_rake_task/with_undefined_argument.feature
105
- - features/dsl/each_rake_task/without_arguments.feature
102
+ - features/dsl/each_rake_task/unqualified.feature
103
+ - features/dsl/each_rake_task/with_defined_namespace.feature
104
+ - features/dsl/each_rake_task/with_defined_task.feature
105
+ - features/dsl/each_rake_task/with_undefined_task_or_namespace.feature
106
106
  - features/dsl/mirror_rake_tasks/inside_capistrano_namespace.feature
107
- - features/dsl/mirror_rake_tasks/with_defined_namespace_argument.feature
107
+ - features/dsl/mirror_rake_tasks/unqualified.feature
108
+ - features/dsl/mirror_rake_tasks/with_cd.feature
109
+ - features/dsl/mirror_rake_tasks/with_cd_and_environment_variables.feature
110
+ - features/dsl/mirror_rake_tasks/with_defined_namespace.feature
111
+ - features/dsl/mirror_rake_tasks/with_defined_task.feature
112
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_cd.feature
113
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_cd_and_environment_variables.feature
114
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_environment_variables.feature
115
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename.feature
116
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd.feature
117
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd_and_environment_variables.feature
118
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_environment_variables.feature
119
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options.feature
120
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd.feature
121
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd_and_environment_variables.feature
122
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_environment_variables.feature
108
123
  - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options.feature
109
- - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_arguments_and_environment_variables.feature
110
- - features/dsl/mirror_rake_tasks/with_defined_task_argument.feature
111
- - features/dsl/mirror_rake_tasks/with_defined_task_argument_and_environment_variables.feature
124
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd.feature
125
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd_and_environment_variables.feature
126
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_environment_variables.feature
112
127
  - features/dsl/mirror_rake_tasks/with_environment_variables.feature
113
- - features/dsl/mirror_rake_tasks/with_undefined_argument.feature
114
- - features/dsl/mirror_rake_tasks/with_valid_options_argument.feature
115
- - features/dsl/mirror_rake_tasks/with_valid_options_arguments_and_environment_variables.feature
116
- - features/dsl/mirror_rake_tasks/without_arguments.feature
128
+ - features/dsl/mirror_rake_tasks/with_rename.feature
129
+ - features/dsl/mirror_rake_tasks/with_rename_and_cd.feature
130
+ - features/dsl/mirror_rake_tasks/with_rename_and_cd_and_environment_variables.feature
131
+ - features/dsl/mirror_rake_tasks/with_rename_and_environment_variables.feature
132
+ - features/dsl/mirror_rake_tasks/with_rename_and_valid_options.feature
133
+ - features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd.feature
134
+ - features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd_and_environment_variables.feature
135
+ - features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_environment_variables.feature
136
+ - features/dsl/mirror_rake_tasks/with_undefined_task_or_namespace.feature
137
+ - features/dsl/mirror_rake_tasks/with_valid_options.feature
138
+ - features/dsl/mirror_rake_tasks/with_valid_options_and_cd.feature
139
+ - features/dsl/mirror_rake_tasks/with_valid_options_and_cd_and_environment_variables.feature
140
+ - features/dsl/mirror_rake_tasks/with_valid_options_and_environment_variables.feature
117
141
  - features/dsl/rake_executable.feature
118
142
  - features/step_definitions.rb
119
143
  - features/support/env.rb
120
144
  - lib/cape.rb
121
145
  - lib/cape/capistrano.rb
146
+ - lib/cape/capistrano_deprecated.rb
122
147
  - lib/cape/core_ext.rb
123
148
  - lib/cape/core_ext/hash.rb
124
149
  - lib/cape/core_ext/symbol.rb
150
+ - lib/cape/deprecation.rb
151
+ - lib/cape/deprecation/base.rb
152
+ - lib/cape/deprecation/capistrano_deprecated_define_rake_wrapper.rb
153
+ - lib/cape/deprecation/dsl_deprecated_mirror_rake_tasks.rb
125
154
  - lib/cape/dsl.rb
155
+ - lib/cape/dsl_deprecated.rb
126
156
  - lib/cape/hash_list.rb
127
157
  - lib/cape/rake.rb
158
+ - lib/cape/recipe_definition.rb
159
+ - lib/cape/recipe_definition_deprecated.rb
128
160
  - lib/cape/util.rb
129
161
  - lib/cape/version.rb
162
+ - lib/cape/xterm.rb
130
163
  - spec/cape/capistrano_spec.rb
131
164
  - spec/cape/core_ext/hash_spec.rb
132
165
  - spec/cape/core_ext/symbol_spec.rb
166
+ - spec/cape/deprecation/base_sharedspec.rb
167
+ - spec/cape/deprecation/capistrano_deprecated_define_rake_wrapper_spec.rb
168
+ - spec/cape/deprecation/dsl_deprecated_mirror_rake_tasks_spec.rb
169
+ - spec/cape/dsl_deprecated_spec.rb
133
170
  - spec/cape/dsl_spec.rb
134
171
  - spec/cape/hash_list_spec.rb
135
172
  - spec/cape/rake_spec.rb
173
+ - spec/cape/recipe_definition_spec.rb
136
174
  - spec/cape/util_spec.rb
137
175
  - spec/cape/version_spec.rb
176
+ - spec/cape/xterm_spec.rb
138
177
  - spec/cape_spec.rb
139
178
  - spec/spec_helper.rb
140
179
  homepage: http://njonsson.github.com/cape
@@ -173,32 +212,62 @@ signing_key:
173
212
  specification_version: 3
174
213
  summary: Dynamically generates Capistrano recipes for Rake tasks
175
214
  test_files:
176
- - features/dsl/each_rake_task/with_defined_namespace_argument.feature
177
- - features/dsl/each_rake_task/with_defined_task_argument.feature
178
- - features/dsl/each_rake_task/with_undefined_argument.feature
179
- - features/dsl/each_rake_task/without_arguments.feature
215
+ - features/dsl/each_rake_task/unqualified.feature
216
+ - features/dsl/each_rake_task/with_defined_namespace.feature
217
+ - features/dsl/each_rake_task/with_defined_task.feature
218
+ - features/dsl/each_rake_task/with_undefined_task_or_namespace.feature
180
219
  - features/dsl/mirror_rake_tasks/inside_capistrano_namespace.feature
181
- - features/dsl/mirror_rake_tasks/with_defined_namespace_argument.feature
220
+ - features/dsl/mirror_rake_tasks/unqualified.feature
221
+ - features/dsl/mirror_rake_tasks/with_cd.feature
222
+ - features/dsl/mirror_rake_tasks/with_cd_and_environment_variables.feature
223
+ - features/dsl/mirror_rake_tasks/with_defined_namespace.feature
224
+ - features/dsl/mirror_rake_tasks/with_defined_task.feature
225
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_cd.feature
226
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_cd_and_environment_variables.feature
227
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_environment_variables.feature
228
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename.feature
229
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd.feature
230
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_cd_and_environment_variables.feature
231
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_environment_variables.feature
232
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options.feature
233
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd.feature
234
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_cd_and_environment_variables.feature
235
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_rename_and_valid_options_and_environment_variables.feature
182
236
  - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options.feature
183
- - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_arguments_and_environment_variables.feature
184
- - features/dsl/mirror_rake_tasks/with_defined_task_argument.feature
185
- - features/dsl/mirror_rake_tasks/with_defined_task_argument_and_environment_variables.feature
237
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd.feature
238
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_cd_and_environment_variables.feature
239
+ - features/dsl/mirror_rake_tasks/with_defined_task_and_valid_options_and_environment_variables.feature
186
240
  - features/dsl/mirror_rake_tasks/with_environment_variables.feature
187
- - features/dsl/mirror_rake_tasks/with_undefined_argument.feature
188
- - features/dsl/mirror_rake_tasks/with_valid_options_argument.feature
189
- - features/dsl/mirror_rake_tasks/with_valid_options_arguments_and_environment_variables.feature
190
- - features/dsl/mirror_rake_tasks/without_arguments.feature
241
+ - features/dsl/mirror_rake_tasks/with_rename.feature
242
+ - features/dsl/mirror_rake_tasks/with_rename_and_cd.feature
243
+ - features/dsl/mirror_rake_tasks/with_rename_and_cd_and_environment_variables.feature
244
+ - features/dsl/mirror_rake_tasks/with_rename_and_environment_variables.feature
245
+ - features/dsl/mirror_rake_tasks/with_rename_and_valid_options.feature
246
+ - features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd.feature
247
+ - features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_cd_and_environment_variables.feature
248
+ - features/dsl/mirror_rake_tasks/with_rename_and_valid_options_and_environment_variables.feature
249
+ - features/dsl/mirror_rake_tasks/with_undefined_task_or_namespace.feature
250
+ - features/dsl/mirror_rake_tasks/with_valid_options.feature
251
+ - features/dsl/mirror_rake_tasks/with_valid_options_and_cd.feature
252
+ - features/dsl/mirror_rake_tasks/with_valid_options_and_cd_and_environment_variables.feature
253
+ - features/dsl/mirror_rake_tasks/with_valid_options_and_environment_variables.feature
191
254
  - features/dsl/rake_executable.feature
192
255
  - features/step_definitions.rb
193
256
  - features/support/env.rb
194
257
  - spec/cape/capistrano_spec.rb
195
258
  - spec/cape/core_ext/hash_spec.rb
196
259
  - spec/cape/core_ext/symbol_spec.rb
260
+ - spec/cape/deprecation/base_sharedspec.rb
261
+ - spec/cape/deprecation/capistrano_deprecated_define_rake_wrapper_spec.rb
262
+ - spec/cape/deprecation/dsl_deprecated_mirror_rake_tasks_spec.rb
263
+ - spec/cape/dsl_deprecated_spec.rb
197
264
  - spec/cape/dsl_spec.rb
198
265
  - spec/cape/hash_list_spec.rb
199
266
  - spec/cape/rake_spec.rb
267
+ - spec/cape/recipe_definition_spec.rb
200
268
  - spec/cape/util_spec.rb
201
269
  - spec/cape/version_spec.rb
270
+ - spec/cape/xterm_spec.rb
202
271
  - spec/cape_spec.rb
203
272
  - spec/spec_helper.rb
204
273
  has_rdoc: true
@@ -1,53 +0,0 @@
1
- Feature: The #each_rake_task DSL method with an undefined argument
2
-
3
- In order to use the metadata of Rake tasks in my Capistrano recipes,
4
- As a developer using Cape,
5
- I want to use the Cape DSL.
6
-
7
- Scenario: do not enumerate any Rake tasks for a completely unrecognized argument
8
- Given a full-featured Rakefile
9
- And a Capfile with:
10
- """
11
- Cape do
12
- each_rake_task :this_does_not_exist do |t|
13
- $stdout.puts '', "Name: #{t[:name].inspect}"
14
- if t[:parameters]
15
- $stdout.puts "Parameters: #{t[:parameters].inspect}"
16
- end
17
- if t[:description]
18
- $stdout.puts "Description: #{t[:description].inspect}"
19
- end
20
- end
21
- end
22
- """
23
- When I run `cap -vT`
24
- Then the output should not contain:
25
- """
26
-
27
- Name: "with_period"
28
- Description: "Ends with period."
29
- """
30
-
31
- Scenario: do not enumerate any Rake tasks for a partially recognized argument
32
- Given a full-featured Rakefile
33
- And a Capfile with:
34
- """
35
- Cape do
36
- each_rake_task :period do |t|
37
- $stdout.puts '', "Name: #{t[:name].inspect}"
38
- if t[:parameters]
39
- $stdout.puts "Parameters: #{t[:parameters].inspect}"
40
- end
41
- if t[:description]
42
- $stdout.puts "Description: #{t[:description].inspect}"
43
- end
44
- end
45
- end
46
- """
47
- When I run `cap -vT`
48
- Then the output should not contain:
49
- """
50
-
51
- Name: "with_period"
52
- Description: "Ends with period."
53
- """