vcloud-launcher 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +2 -0
- data/CHANGELOG.md +13 -0
- data/CONTRIBUTING.md +66 -0
- data/Gemfile +2 -2
- data/Rakefile +3 -9
- data/bin/vcloud-launch +1 -44
- data/lib/vcloud/launcher.rb +2 -0
- data/lib/vcloud/launcher/cli.rb +103 -0
- data/lib/vcloud/launcher/launch.rb +36 -1
- data/lib/vcloud/launcher/preamble.rb +60 -0
- data/lib/vcloud/launcher/version.rb +1 -1
- data/lib/vcloud/launcher/vm_orchestrator.rb +10 -5
- data/spec/integration/README.md +1 -1
- data/spec/integration/launcher/data/storage_profile.yaml.erb +0 -30
- data/spec/integration/launcher/{vcloud_launcher_spec.rb → launch_spec.rb} +42 -31
- data/spec/integration/launcher/storage_profile_integration_spec.rb +23 -35
- data/spec/spec_helper.rb +29 -0
- data/spec/vcloud/launcher/cli_spec.rb +214 -0
- data/spec/vcloud/launcher/launch_spec.rb +107 -1
- data/spec/vcloud/launcher/preamble_spec.rb +214 -0
- data/spec/vcloud/launcher/vapp_orchestrator_spec.rb +14 -14
- data/spec/vcloud/launcher/vm_orchestrator_spec.rb +109 -22
- data/vcloud-launcher.gemspec +8 -8
- metadata +40 -71
- data/features/step_definitions/vcloud-launch_steps.rb +0 -3
- data/features/support/env.rb +0 -16
- data/features/vcloud-launch.feature +0 -18
data/vcloud-launcher.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = ['Anna Shipman']
|
11
11
|
s.email = ['anna.shipman@digital.cabinet-office.gov.uk']
|
12
12
|
s.summary = 'Tool to launch and configure vCloud vApps'
|
13
|
-
s.homepage = 'https://github.com/
|
13
|
+
s.homepage = 'https://github.com/gds-operations/vcloud-launcher'
|
14
14
|
s.license = 'MIT'
|
15
15
|
|
16
16
|
s.files = `git ls-files`.split($/)
|
@@ -18,16 +18,16 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
19
19
|
s.require_paths = ['lib']
|
20
20
|
|
21
|
-
s.required_ruby_version = '>= 1.9.
|
21
|
+
s.required_ruby_version = '>= 1.9.3'
|
22
22
|
|
23
|
-
s.add_runtime_dependency '
|
24
|
-
s.add_runtime_dependency 'vcloud-core', '~> 0.5.0'
|
25
|
-
s.add_development_dependency 'aruba', '~> 0.5.3'
|
26
|
-
s.add_development_dependency 'cucumber', '~> 1.3.10'
|
23
|
+
s.add_runtime_dependency 'vcloud-core', '~> 0.6.0'
|
27
24
|
s.add_development_dependency 'gem_publisher', '1.2.0'
|
28
25
|
s.add_development_dependency 'pry'
|
29
26
|
s.add_development_dependency 'rake'
|
30
27
|
s.add_development_dependency 'rspec', '~> 2.14.1'
|
31
|
-
s.add_development_dependency 'rubocop'
|
32
|
-
|
28
|
+
s.add_development_dependency 'rubocop', '~> 0.23.0'
|
29
|
+
# Pin SimpleCov to < 0.8.x until this issue is resolved:
|
30
|
+
# https://github.com/colszowka/simplecov/issues/281
|
31
|
+
s.add_development_dependency 'simplecov', '~> 0.7.1'
|
32
|
+
s.add_development_dependency 'vcloud-tools-tester', '~> 0.1.0'
|
33
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcloud-launcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: methadone
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: vcloud-core
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +18,7 @@ dependencies:
|
|
34
18
|
requirements:
|
35
19
|
- - ~>
|
36
20
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.
|
21
|
+
version: 0.6.0
|
38
22
|
type: :runtime
|
39
23
|
prerelease: false
|
40
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,39 +26,7 @@ dependencies:
|
|
42
26
|
requirements:
|
43
27
|
- - ~>
|
44
28
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: aruba
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.5.3
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.5.3
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: cucumber
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 1.3.10
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 1.3.10
|
29
|
+
version: 0.6.0
|
78
30
|
- !ruby/object:Gem::Dependency
|
79
31
|
name: gem_publisher
|
80
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,33 +96,49 @@ dependencies:
|
|
144
96
|
requirement: !ruby/object:Gem::Requirement
|
145
97
|
none: false
|
146
98
|
requirements:
|
147
|
-
- -
|
99
|
+
- - ~>
|
148
100
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
101
|
+
version: 0.23.0
|
150
102
|
type: :development
|
151
103
|
prerelease: false
|
152
104
|
version_requirements: !ruby/object:Gem::Requirement
|
153
105
|
none: false
|
154
106
|
requirements:
|
155
|
-
- -
|
107
|
+
- - ~>
|
156
108
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
109
|
+
version: 0.23.0
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: simplecov
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.7.1
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.7.1
|
158
126
|
- !ruby/object:Gem::Dependency
|
159
127
|
name: vcloud-tools-tester
|
160
128
|
requirement: !ruby/object:Gem::Requirement
|
161
129
|
none: false
|
162
130
|
requirements:
|
163
|
-
- -
|
131
|
+
- - ~>
|
164
132
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.0
|
133
|
+
version: 0.1.0
|
166
134
|
type: :development
|
167
135
|
prerelease: false
|
168
136
|
version_requirements: !ruby/object:Gem::Requirement
|
169
137
|
none: false
|
170
138
|
requirements:
|
171
|
-
- -
|
139
|
+
- - ~>
|
172
140
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.0
|
141
|
+
version: 0.1.0
|
174
142
|
description:
|
175
143
|
email:
|
176
144
|
- anna.shipman@digital.cabinet-office.gov.uk
|
@@ -182,6 +150,7 @@ files:
|
|
182
150
|
- .gitignore
|
183
151
|
- .travis.yml
|
184
152
|
- CHANGELOG.md
|
153
|
+
- CONTRIBUTING.md
|
185
154
|
- Gemfile
|
186
155
|
- LICENSE.txt
|
187
156
|
- README.md
|
@@ -192,13 +161,12 @@ files:
|
|
192
161
|
- examples/vcloud-launch/minimal_vapp_config.yaml
|
193
162
|
- examples/vcloud-launch/multiple_vapps_simple.yaml
|
194
163
|
- examples/vcloud-launch/yaml_anchors_example.yaml
|
195
|
-
- features/step_definitions/vcloud-launch_steps.rb
|
196
|
-
- features/support/env.rb
|
197
|
-
- features/vcloud-launch.feature
|
198
164
|
- jenkins.sh
|
199
165
|
- jenkins_integration_tests.sh
|
200
166
|
- lib/vcloud/launcher.rb
|
167
|
+
- lib/vcloud/launcher/cli.rb
|
201
168
|
- lib/vcloud/launcher/launch.rb
|
169
|
+
- lib/vcloud/launcher/preamble.rb
|
202
170
|
- lib/vcloud/launcher/schema/launcher_vapps.rb
|
203
171
|
- lib/vcloud/launcher/schema/vapp.rb
|
204
172
|
- lib/vcloud/launcher/schema/vm.rb
|
@@ -212,16 +180,18 @@ files:
|
|
212
180
|
- spec/integration/launcher/data/happy_path.yaml.erb
|
213
181
|
- spec/integration/launcher/data/minimum_data_setup.yaml.erb
|
214
182
|
- spec/integration/launcher/data/storage_profile.yaml.erb
|
183
|
+
- spec/integration/launcher/launch_spec.rb
|
215
184
|
- spec/integration/launcher/storage_profile_integration_spec.rb
|
216
|
-
- spec/integration/launcher/vcloud_launcher_spec.rb
|
217
185
|
- spec/integration/vcloud_tools_testing_config.yaml.template
|
218
186
|
- spec/spec_helper.rb
|
187
|
+
- spec/vcloud/launcher/cli_spec.rb
|
219
188
|
- spec/vcloud/launcher/launch_spec.rb
|
189
|
+
- spec/vcloud/launcher/preamble_spec.rb
|
220
190
|
- spec/vcloud/launcher/vapp_orchestrator_spec.rb
|
221
191
|
- spec/vcloud/launcher/vm_orchestrator_spec.rb
|
222
192
|
- tools/fog_credentials.rb
|
223
193
|
- vcloud-launcher.gemspec
|
224
|
-
homepage: https://github.com/
|
194
|
+
homepage: https://github.com/gds-operations/vcloud-launcher
|
225
195
|
licenses:
|
226
196
|
- MIT
|
227
197
|
post_install_message:
|
@@ -233,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
233
203
|
requirements:
|
234
204
|
- - ! '>='
|
235
205
|
- !ruby/object:Gem::Version
|
236
|
-
version: 1.9.
|
206
|
+
version: 1.9.3
|
237
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
208
|
none: false
|
239
209
|
requirements:
|
@@ -242,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
212
|
version: '0'
|
243
213
|
segments:
|
244
214
|
- 0
|
245
|
-
hash:
|
215
|
+
hash: -851694776577848026
|
246
216
|
requirements: []
|
247
217
|
rubyforge_project:
|
248
218
|
rubygems_version: 1.8.23
|
@@ -250,19 +220,18 @@ signing_key:
|
|
250
220
|
specification_version: 3
|
251
221
|
summary: Tool to launch and configure vCloud vApps
|
252
222
|
test_files:
|
253
|
-
- features/step_definitions/vcloud-launch_steps.rb
|
254
|
-
- features/support/env.rb
|
255
|
-
- features/vcloud-launch.feature
|
256
223
|
- spec/erb_helper.rb
|
257
224
|
- spec/integration/README.md
|
258
225
|
- spec/integration/launcher/data/basic_preamble_test.erb
|
259
226
|
- spec/integration/launcher/data/happy_path.yaml.erb
|
260
227
|
- spec/integration/launcher/data/minimum_data_setup.yaml.erb
|
261
228
|
- spec/integration/launcher/data/storage_profile.yaml.erb
|
229
|
+
- spec/integration/launcher/launch_spec.rb
|
262
230
|
- spec/integration/launcher/storage_profile_integration_spec.rb
|
263
|
-
- spec/integration/launcher/vcloud_launcher_spec.rb
|
264
231
|
- spec/integration/vcloud_tools_testing_config.yaml.template
|
265
232
|
- spec/spec_helper.rb
|
233
|
+
- spec/vcloud/launcher/cli_spec.rb
|
266
234
|
- spec/vcloud/launcher/launch_spec.rb
|
235
|
+
- spec/vcloud/launcher/preamble_spec.rb
|
267
236
|
- spec/vcloud/launcher/vapp_orchestrator_spec.rb
|
268
237
|
- spec/vcloud/launcher/vm_orchestrator_spec.rb
|
data/features/support/env.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'aruba/cucumber'
|
2
|
-
require 'methadone/cucumber'
|
3
|
-
|
4
|
-
ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
|
5
|
-
LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib')
|
6
|
-
|
7
|
-
Before do
|
8
|
-
# Using "announce" causes massive warnings on 1.9.2
|
9
|
-
@puts = true
|
10
|
-
@original_rubylib = ENV['RUBYLIB']
|
11
|
-
ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
|
12
|
-
end
|
13
|
-
|
14
|
-
After do
|
15
|
-
ENV['RUBYLIB'] = @original_rubylib
|
16
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Feature: "vcloud-launch" works as a useful command-line tool
|
2
|
-
In order to use "vcloud-launch" from the CLI
|
3
|
-
I want to have it behave like a typical Unix tool
|
4
|
-
So I don't get surpised
|
5
|
-
|
6
|
-
Scenario: Common arguments work
|
7
|
-
When I get help for "vcloud-launch"
|
8
|
-
Then the exit status should be 0
|
9
|
-
And the banner should be present
|
10
|
-
And the banner should document that this app takes options
|
11
|
-
And the following options should be documented:
|
12
|
-
|--version|
|
13
|
-
|--dont-power-on|
|
14
|
-
|--continue-on-error|
|
15
|
-
|--verbose|
|
16
|
-
|--quiet|
|
17
|
-
And the banner should document that this app's arguments are:
|
18
|
-
|org_config_file|
|