bosh-stemcell 1.1777.0 → 1.1782.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bosh/stemcell/agent.rb +22 -0
- data/lib/bosh/stemcell/definition.rb +23 -0
- data/lib/bosh/stemcell/version.rb +1 -1
- metadata +7 -5
@@ -0,0 +1,22 @@
|
|
1
|
+
module Bosh::Stemcell
|
2
|
+
module Agent
|
3
|
+
def self.for(name)
|
4
|
+
case name
|
5
|
+
when 'go'
|
6
|
+
Go.new
|
7
|
+
when 'ruby'
|
8
|
+
Ruby.new
|
9
|
+
else
|
10
|
+
raise ArgumentError.new("invalid agent: #{name}")
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
class Go
|
16
|
+
end
|
17
|
+
|
18
|
+
class Ruby
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'bosh/stemcell/infrastructure'
|
2
|
+
require 'bosh/stemcell/operating_system'
|
3
|
+
require 'bosh/stemcell/agent'
|
4
|
+
|
5
|
+
module Bosh::Stemcell
|
6
|
+
class Definition
|
7
|
+
attr_reader :infrastructure, :operating_system, :agent
|
8
|
+
|
9
|
+
def self.for(infrastructure_name, operating_system_name, agent_name)
|
10
|
+
new(
|
11
|
+
Bosh::Stemcell::Infrastructure.for(infrastructure_name),
|
12
|
+
Bosh::Stemcell::OperatingSystem.for(operating_system_name),
|
13
|
+
Bosh::Stemcell::Agent.for(agent_name)
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
def initialize(infrastructure, operating_system, agent)
|
18
|
+
@infrastructure = infrastructure
|
19
|
+
@operating_system = operating_system
|
20
|
+
@agent = agent
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh-stemcell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1782.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bosh_aws_cpi
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.1782.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
29
|
+
version: 1.1782.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: fakefs
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,6 +146,7 @@ extensions: []
|
|
146
146
|
extra_rdoc_files: []
|
147
147
|
files:
|
148
148
|
- lib/bosh/stemcell.rb
|
149
|
+
- lib/bosh/stemcell/agent.rb
|
149
150
|
- lib/bosh/stemcell/archive.rb
|
150
151
|
- lib/bosh/stemcell/archive_filename.rb
|
151
152
|
- lib/bosh/stemcell/aws/ami.rb
|
@@ -153,6 +154,7 @@ files:
|
|
153
154
|
- lib/bosh/stemcell/aws/region.rb
|
154
155
|
- lib/bosh/stemcell/builder_command.rb
|
155
156
|
- lib/bosh/stemcell/builder_options.rb
|
157
|
+
- lib/bosh/stemcell/definition.rb
|
156
158
|
- lib/bosh/stemcell/disk_image.rb
|
157
159
|
- lib/bosh/stemcell/infrastructure.rb
|
158
160
|
- lib/bosh/stemcell/operating_system.rb
|
@@ -182,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
184
|
version: '0'
|
183
185
|
segments:
|
184
186
|
- 0
|
185
|
-
hash:
|
187
|
+
hash: -1808859067482875802
|
186
188
|
requirements: []
|
187
189
|
rubyforge_project:
|
188
190
|
rubygems_version: 1.8.23
|