cuken 0.1.13 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/.rvmrc +61 -0
  2. data/Gemfile +17 -15
  3. data/Gemfile.lock +55 -63
  4. data/VERSION +1 -1
  5. data/cuken.gems +46 -0
  6. data/cuken.gemspec +85 -31
  7. data/features/about.md +4 -0
  8. data/features/avagrant_steps/vagrant_steps.feature +13 -0
  9. data/features/chef_examples/cookbooks_cookbook.feature +1 -1
  10. data/features/chef_examples/cookbooks_metadata.feature +5 -5
  11. data/features/chef_examples/cookbooks_repo.feature +1 -1
  12. data/features/chef_examples/knife_admin_client.feature +12 -12
  13. data/features/chef_examples/knife_client_create.feature +1 -1
  14. data/features/chef_examples/zenoss_example/01_chef_server_setup.feature +1 -1
  15. data/features/chef_examples/zenoss_example/02_monitor_vm_setup.feature +1 -1
  16. data/features/chef_steps/cookbook_steps.feature +6 -16
  17. data/features/command_examples/commands.feature +3 -3
  18. data/features/command_examples/exit_statuses.feature +49 -0
  19. data/features/command_examples/file_system_commands.feature +128 -0
  20. data/features/command_examples/flushing.feature +24 -0
  21. data/features/command_examples/interactive.feature +57 -0
  22. data/features/command_examples/no_clobber.feature +41 -0
  23. data/features/command_examples/output.feature +205 -0
  24. data/features/command_steps/command_steps.feature +49 -42
  25. data/features/file_examples/files.feature +5 -5
  26. data/features/git_examples/git_clone.feature +33 -0
  27. data/features/ssh_examples/ssh.feature +11 -2
  28. data/features/step_definitions/cuken_steps.rb +3 -2
  29. data/features/support/env.rb +2 -1
  30. data/lib/cuken/all.rb +1 -0
  31. data/lib/cuken/api/aruba/api.rb +342 -0
  32. data/lib/cuken/api/aruba/hooks.rb +63 -0
  33. data/lib/cuken/api/aruba/process.rb +74 -0
  34. data/lib/cuken/api/aruba.rb +5 -0
  35. data/lib/cuken/api/chef/common.rb +8 -1
  36. data/lib/cuken/api/chef/cookbook.rb +31 -5
  37. data/lib/cuken/api/chef/knife.rb +3 -3
  38. data/lib/cuken/api/chef/role.rb +3 -3
  39. data/lib/cuken/api/chef.rb +98 -9
  40. data/lib/cuken/api/cmd.rb +8 -8
  41. data/lib/cuken/api/common.rb +11 -23
  42. data/lib/cuken/api/file.rb +38 -38
  43. data/lib/cuken/api/git/clone.rb +25 -0
  44. data/lib/cuken/api/git/common.rb +37 -0
  45. data/lib/cuken/api/git/remote.rb +16 -0
  46. data/lib/cuken/api/git/repository.rb +62 -0
  47. data/lib/cuken/api/git.rb +69 -0
  48. data/lib/cuken/api/rvm/common.rb +10 -0
  49. data/lib/cuken/api/rvm/gemsets.rb +33 -0
  50. data/lib/cuken/api/rvm/wip.rb +554 -0
  51. data/lib/cuken/api/rvm.rb +25 -479
  52. data/lib/cuken/api/ssh.rb +85 -4
  53. data/lib/cuken/api/vagrant/common.rb +7 -4
  54. data/lib/cuken/api/vagrant/v_m.rb +2 -2
  55. data/lib/cuken/api/vagrant.rb +3 -3
  56. data/lib/cuken/common.rb +3 -1
  57. data/lib/cuken/cucumber/chef/common.rb +3 -3
  58. data/lib/cuken/cucumber/chef/cookbook/action.rb +81 -0
  59. data/lib/cuken/cucumber/chef/cookbook/local.rb +71 -0
  60. data/lib/cuken/cucumber/chef/cookbook/remote.rb +37 -0
  61. data/lib/cuken/cucumber/chef/cookbook.rb +3 -140
  62. data/lib/cuken/cucumber/chef/cookbook_steps.rb +1 -1
  63. data/lib/cuken/cucumber/chef/deploy_steps.rb +1 -1
  64. data/lib/cuken/cucumber/chef/done_directory_steps.rb +2 -2
  65. data/lib/cuken/cucumber/chef/done_file_steps.rb +5 -5
  66. data/lib/cuken/cucumber/chef/knife.rb +1 -1
  67. data/lib/cuken/cucumber/chef.rb +1 -1
  68. data/lib/cuken/cucumber/cmd/execution.rb +34 -0
  69. data/lib/cuken/cucumber/cmd/exit_status.rb +30 -0
  70. data/lib/cuken/cucumber/cmd.rb +2 -36
  71. data/lib/cuken/cucumber/common.rb +42 -6
  72. data/lib/cuken/cucumber/file.rb +42 -37
  73. data/lib/cuken/cucumber/git/clone.rb +51 -0
  74. data/lib/cuken/cucumber/git/common.rb +36 -0
  75. data/lib/cuken/cucumber/git/local.rb +19 -0
  76. data/lib/cuken/cucumber/git/remote.rb +22 -0
  77. data/lib/cuken/cucumber/git.rb +26 -0
  78. data/lib/cuken/cucumber/output/all.rb +41 -0
  79. data/lib/cuken/cucumber/output/cmd.rb +46 -0
  80. data/lib/cuken/cucumber/output/stderr.rb +33 -0
  81. data/lib/cuken/cucumber/output/stdout.rb +34 -0
  82. data/lib/cuken/cucumber/rvm/common.rb +0 -0
  83. data/lib/cuken/cucumber/rvm/gemsets.rb +32 -0
  84. data/lib/cuken/cucumber/rvm/hooks.rb +0 -0
  85. data/lib/cuken/cucumber/rvm.rb +3 -1
  86. data/lib/cuken/cucumber/ssh/common.rb +51 -0
  87. data/lib/cuken/cucumber/ssh.rb +3 -35
  88. data/lib/cuken/cucumber/vagrant.rb +1 -1
  89. data/lib/cuken/git.rb +21 -0
  90. data/spec/api/rvm/gemsets/api_spec.rb +41 -0
  91. data/spec/api/rvm/gemsets/helper_spec.rb +19 -0
  92. data/spec/api/rvm_spec.rb +63 -15
  93. data/spec/api/vagrant/v_m/Vagrantfile +82 -0
  94. data/spec/api/vagrant/v_m/api_spec.rb +37 -0
  95. data/spec/spec_helper.rb +39 -0
  96. metadata +123 -45
  97. data/spec/cuken_spec.rb +0 -7
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cuken
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.13
5
+ version: 0.1.15
6
6
  platform: ruby
7
7
  authors:
8
8
  - Hedgehog
@@ -10,38 +10,38 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-03 00:00:00 Z
13
+ date: 2011-10-17 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: aruba
16
+ name: chef
17
17
  requirement: &id001 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.3.6
22
+ version: 0.10.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
27
- name: cucumber
27
+ name: childprocess
28
28
  requirement: &id002 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: "0"
33
+ version: 0.1.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: *id002
37
37
  - !ruby/object:Gem::Dependency
38
- name: chef
38
+ name: cucumber
39
39
  requirement: &id003 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
- - - ~>
42
+ - - ">"
43
43
  - !ruby/object:Gem::Version
44
- version: 0.10.0
44
+ version: 1.0.0
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: *id003
@@ -57,107 +57,129 @@ dependencies:
57
57
  prerelease: false
58
58
  version_requirements: *id004
59
59
  - !ruby/object:Gem::Dependency
60
- name: rvm
60
+ name: open4
61
61
  requirement: &id005 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
- - - ~>
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: 1.5.2
66
+ version: "0"
67
67
  type: :runtime
68
68
  prerelease: false
69
69
  version_requirements: *id005
70
70
  - !ruby/object:Gem::Dependency
71
- name: open4
71
+ name: rspec
72
72
  requirement: &id006 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ">="
76
76
  - !ruby/object:Gem::Version
77
- version: "0"
77
+ version: 2.5.0
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: *id006
81
81
  - !ruby/object:Gem::Dependency
82
- name: vagrant
82
+ name: rvm
83
83
  requirement: &id007 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
87
87
  - !ruby/object:Gem::Version
88
- version: 0.7.2
88
+ version: 1.8.0
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: *id007
92
92
  - !ruby/object:Gem::Dependency
93
- name: rr
93
+ name: vagrant
94
94
  requirement: &id008 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
- - - ~>
97
+ - - "="
98
98
  - !ruby/object:Gem::Version
99
- version: 1.0.2
100
- type: :development
99
+ version: 0.8.7
100
+ type: :runtime
101
101
  prerelease: false
102
102
  version_requirements: *id008
103
103
  - !ruby/object:Gem::Dependency
104
- name: rspec
104
+ name: rr
105
105
  requirement: &id009 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
- version: 2.5.0
110
+ version: 1.0.2
111
111
  type: :development
112
112
  prerelease: false
113
113
  version_requirements: *id009
114
114
  - !ruby/object:Gem::Dependency
115
- name: yard
115
+ name: rspec
116
116
  requirement: &id010 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
- - - ~>
119
+ - - ">="
120
120
  - !ruby/object:Gem::Version
121
- version: 0.6.0
121
+ version: 2.5.0
122
122
  type: :development
123
123
  prerelease: false
124
124
  version_requirements: *id010
125
125
  - !ruby/object:Gem::Dependency
126
- name: cucumber
126
+ name: chef
127
127
  requirement: &id011 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
- - - ">="
130
+ - - ~>
131
131
  - !ruby/object:Gem::Version
132
- version: "0"
132
+ version: 0.10.0
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: *id011
136
136
  - !ruby/object:Gem::Dependency
137
- name: bundler
137
+ name: cucumber
138
138
  requirement: &id012 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
- - - ~>
141
+ - - ">"
142
142
  - !ruby/object:Gem::Version
143
- version: 1.0.11
143
+ version: 1.0.0
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: *id012
147
147
  - !ruby/object:Gem::Dependency
148
- name: jeweler
148
+ name: yard
149
149
  requirement: &id013 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ~>
153
153
  - !ruby/object:Gem::Version
154
- version: 1.5.2
154
+ version: 0.6.0
155
155
  type: :development
156
156
  prerelease: false
157
157
  version_requirements: *id013
158
158
  - !ruby/object:Gem::Dependency
159
- name: rcov
159
+ name: bundler
160
160
  requirement: &id014 !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 1.0.21
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: *id014
169
+ - !ruby/object:Gem::Dependency
170
+ name: jeweler
171
+ requirement: &id015 !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ~>
175
+ - !ruby/object:Gem::Version
176
+ version: 1.5.2
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: *id015
180
+ - !ruby/object:Gem::Dependency
181
+ name: rcov
182
+ requirement: &id016 !ruby/object:Gem::Requirement
161
183
  none: false
162
184
  requirements:
163
185
  - - ">="
@@ -165,10 +187,10 @@ dependencies:
165
187
  version: "0"
166
188
  type: :development
167
189
  prerelease: false
168
- version_requirements: *id014
190
+ version_requirements: *id016
169
191
  - !ruby/object:Gem::Dependency
170
192
  name: reek
171
- requirement: &id015 !ruby/object:Gem::Requirement
193
+ requirement: &id017 !ruby/object:Gem::Requirement
172
194
  none: false
173
195
  requirements:
174
196
  - - ~>
@@ -176,10 +198,10 @@ dependencies:
176
198
  version: 1.2.8
177
199
  type: :development
178
200
  prerelease: false
179
- version_requirements: *id015
201
+ version_requirements: *id017
180
202
  - !ruby/object:Gem::Dependency
181
203
  name: roodi
182
- requirement: &id016 !ruby/object:Gem::Requirement
204
+ requirement: &id018 !ruby/object:Gem::Requirement
183
205
  none: false
184
206
  requirements:
185
207
  - - ~>
@@ -187,10 +209,10 @@ dependencies:
187
209
  version: 2.1.0
188
210
  type: :development
189
211
  prerelease: false
190
- version_requirements: *id016
212
+ version_requirements: *id018
191
213
  - !ruby/object:Gem::Dependency
192
214
  name: fakefs
193
- requirement: &id017 !ruby/object:Gem::Requirement
215
+ requirement: &id019 !ruby/object:Gem::Requirement
194
216
  none: false
195
217
  requirements:
196
218
  - - ~>
@@ -198,7 +220,18 @@ dependencies:
198
220
  version: 0.3.1
199
221
  type: :development
200
222
  prerelease: false
201
- version_requirements: *id017
223
+ version_requirements: *id019
224
+ - !ruby/object:Gem::Dependency
225
+ name: vagrant
226
+ requirement: &id020 !ruby/object:Gem::Requirement
227
+ none: false
228
+ requirements:
229
+ - - "="
230
+ - !ruby/object:Gem::Version
231
+ version: 0.8.7
232
+ type: :development
233
+ prerelease: false
234
+ version_requirements: *id020
202
235
  description: Reusable Cucumber steps and API for post-convergence system integration descriptions
203
236
  email: hedgehogshiatus@gmail.com
204
237
  executables: []
@@ -212,6 +245,7 @@ files:
212
245
  - .document
213
246
  - .relish
214
247
  - .rspec
248
+ - .rvmrc
215
249
  - Gemfile
216
250
  - Gemfile.lock
217
251
  - LICENSE
@@ -225,6 +259,7 @@ files:
225
259
  - examples/chef/features/support/env.rb
226
260
  - features/.nav
227
261
  - features/about.md
262
+ - features/avagrant_steps/vagrant_steps.feature
228
263
  - features/chef_examples/cookbooks_cookbook.feature
229
264
  - features/chef_examples/cookbooks_metadata.feature
230
265
  - features/chef_examples/cookbooks_remote_repo.feature
@@ -241,6 +276,12 @@ files:
241
276
  - features/chef_steps/node_steps.feature
242
277
  - features/chef_steps/role_steps.feature
243
278
  - features/command_examples/commands.feature
279
+ - features/command_examples/exit_statuses.feature
280
+ - features/command_examples/file_system_commands.feature
281
+ - features/command_examples/flushing.feature
282
+ - features/command_examples/interactive.feature
283
+ - features/command_examples/no_clobber.feature
284
+ - features/command_examples/output.feature
244
285
  - features/command_steps/command_steps.feature
245
286
  - features/cuken.feature
246
287
  - features/data/Rakefile
@@ -590,12 +631,17 @@ files:
590
631
  - features/file_examples/files.feature
591
632
  - features/file_steps/file_steps.feature
592
633
  - features/generic_steps/generic_steps.feature
634
+ - features/git_examples/git_clone.feature
593
635
  - features/ssh_examples/ssh.feature
594
636
  - features/ssh_steps/ssh_steps.feature
595
637
  - features/step_definitions/cuken_steps.rb
596
638
  - features/support/env.rb
597
639
  - lib/cuken.rb
598
640
  - lib/cuken/all.rb
641
+ - lib/cuken/api/aruba.rb
642
+ - lib/cuken/api/aruba/api.rb
643
+ - lib/cuken/api/aruba/hooks.rb
644
+ - lib/cuken/api/aruba/process.rb
599
645
  - lib/cuken/api/chef.rb
600
646
  - lib/cuken/api/chef/common.rb
601
647
  - lib/cuken/api/chef/cookbook.rb
@@ -605,7 +651,15 @@ files:
605
651
  - lib/cuken/api/cmd.rb
606
652
  - lib/cuken/api/common.rb
607
653
  - lib/cuken/api/file.rb
654
+ - lib/cuken/api/git.rb
655
+ - lib/cuken/api/git/clone.rb
656
+ - lib/cuken/api/git/common.rb
657
+ - lib/cuken/api/git/remote.rb
658
+ - lib/cuken/api/git/repository.rb
608
659
  - lib/cuken/api/rvm.rb
660
+ - lib/cuken/api/rvm/common.rb
661
+ - lib/cuken/api/rvm/gemsets.rb
662
+ - lib/cuken/api/rvm/wip.rb
609
663
  - lib/cuken/api/ssh-forever.rb
610
664
  - lib/cuken/api/ssh.rb
611
665
  - lib/cuken/api/ssh/password.rb
@@ -618,6 +672,9 @@ files:
618
672
  - lib/cuken/cucumber/chef.rb
619
673
  - lib/cuken/cucumber/chef/common.rb
620
674
  - lib/cuken/cucumber/chef/cookbook.rb
675
+ - lib/cuken/cucumber/chef/cookbook/action.rb
676
+ - lib/cuken/cucumber/chef/cookbook/local.rb
677
+ - lib/cuken/cucumber/chef/cookbook/remote.rb
621
678
  - lib/cuken/cucumber/chef/cookbook_steps.rb
622
679
  - lib/cuken/cucumber/chef/data_bag.rb
623
680
  - lib/cuken/cucumber/chef/deploy_steps.rb
@@ -641,23 +698,42 @@ files:
641
698
  - lib/cuken/cucumber/chef/search_steps.rb
642
699
  - lib/cuken/cucumber/chef/webrat_steps.rb
643
700
  - lib/cuken/cucumber/cmd.rb
701
+ - lib/cuken/cucumber/cmd/execution.rb
702
+ - lib/cuken/cucumber/cmd/exit_status.rb
644
703
  - lib/cuken/cucumber/common.rb
645
704
  - lib/cuken/cucumber/file.rb
705
+ - lib/cuken/cucumber/git.rb
706
+ - lib/cuken/cucumber/git/clone.rb
707
+ - lib/cuken/cucumber/git/common.rb
646
708
  - lib/cuken/cucumber/git/hooks.rb
709
+ - lib/cuken/cucumber/git/local.rb
710
+ - lib/cuken/cucumber/git/remote.rb
711
+ - lib/cuken/cucumber/output/all.rb
712
+ - lib/cuken/cucumber/output/cmd.rb
713
+ - lib/cuken/cucumber/output/stderr.rb
714
+ - lib/cuken/cucumber/output/stdout.rb
647
715
  - lib/cuken/cucumber/rvm.rb
716
+ - lib/cuken/cucumber/rvm/common.rb
717
+ - lib/cuken/cucumber/rvm/gemsets.rb
718
+ - lib/cuken/cucumber/rvm/hooks.rb
648
719
  - lib/cuken/cucumber/ssh.rb
720
+ - lib/cuken/cucumber/ssh/common.rb
649
721
  - lib/cuken/cucumber/ssh/hooks.rb
650
722
  - lib/cuken/cucumber/vagrant.rb
651
723
  - lib/cuken/cucumber/vagrant/common.rb
652
724
  - lib/cuken/cucumber/vagrant/hooks.rb
653
725
  - lib/cuken/file.rb
726
+ - lib/cuken/git.rb
654
727
  - lib/cuken/rvm.rb
655
728
  - lib/cuken/ssh.rb
656
729
  - lib/cuken/vagrant.rb
657
730
  - spec/api/knife_spec.rb
731
+ - spec/api/rvm/gemsets/api_spec.rb
732
+ - spec/api/rvm/gemsets/helper_spec.rb
658
733
  - spec/api/rvm_spec.rb
659
734
  - spec/api/rvmrc_processor_spec.rb
660
- - spec/cuken_spec.rb
735
+ - spec/api/vagrant/v_m/Vagrantfile
736
+ - spec/api/vagrant/v_m/api_spec.rb
661
737
  - spec/spec_helper.rb
662
738
  homepage: http://github.com/hedgehog/cuken
663
739
  licenses:
@@ -672,7 +748,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
672
748
  requirements:
673
749
  - - ">="
674
750
  - !ruby/object:Gem::Version
675
- hash: -4455492689956118476
751
+ hash: 3062157324037865197
676
752
  segments:
677
753
  - 0
678
754
  version: "0"
@@ -685,14 +761,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
685
761
  requirements: []
686
762
 
687
763
  rubyforge_project:
688
- rubygems_version: 1.7.2
764
+ rubygems_version: 1.8.10
689
765
  signing_key:
690
766
  specification_version: 3
691
767
  summary: Reusable Cucumber steps and API for post-convergence system integration descriptions
692
768
  test_files:
693
769
  - examples/chef/features/support/env.rb
694
770
  - spec/api/knife_spec.rb
771
+ - spec/api/rvm/gemsets/api_spec.rb
772
+ - spec/api/rvm/gemsets/helper_spec.rb
695
773
  - spec/api/rvm_spec.rb
696
774
  - spec/api/rvmrc_processor_spec.rb
697
- - spec/cuken_spec.rb
775
+ - spec/api/vagrant/v_m/api_spec.rb
698
776
  - spec/spec_helper.rb
data/spec/cuken_spec.rb DELETED
@@ -1,7 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
-
3
- describe "Cuken" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
6
- end
7
- end