Class: Bosh::Stemcell::StageCollection
- Inherits:
-
Object
- Object
- Bosh::Stemcell::StageCollection
- Extended by:
- Forwardable
- Defined in:
- lib/bosh/stemcell/stage_collection.rb
Instance Method Summary collapse
- #agent_stages ⇒ Object
- #build_stemcell_image_stages ⇒ Object
- #extract_operating_system_stages ⇒ Object
-
#initialize(definition) ⇒ StageCollection
constructor
A new instance of StageCollection.
- #operating_system_stages ⇒ Object
- #package_stemcell_stages(disk_format) ⇒ Object
Constructor Details
#initialize(definition) ⇒ StageCollection
Returns a new instance of StageCollection.
9 10 11 |
# File 'lib/bosh/stemcell/stage_collection.rb', line 9 def initialize(definition) @definition = definition end |
Instance Method Details
#agent_stages ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/bosh/stemcell/stage_collection.rb', line 30 def agent_stages [ :bosh_ruby, :bosh_go_agent, :bosh_micro_go, :aws_cli, :logrotate_config, ] end |
#build_stemcell_image_stages ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/bosh/stemcell/stage_collection.rb', line 40 def build_stemcell_image_stages case infrastructure when Infrastructure::Aws then aws_stages when Infrastructure::OpenStack then openstack_stages when Infrastructure::Vsphere then vsphere_stages when Infrastructure::Vcloud then vcloud_stages when Infrastructure::Warden then warden_stages end end |
#extract_operating_system_stages ⇒ Object
24 25 26 27 28 |
# File 'lib/bosh/stemcell/stage_collection.rb', line 24 def [ :untar_base_os_image, ] end |
#operating_system_stages ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/bosh/stemcell/stage_collection.rb', line 13 def case when OperatingSystem::Centos then centos_os_stages when OperatingSystem::Rhel then rhel_os_stages when OperatingSystem::Ubuntu then ubuntu_os_stages end end |
#package_stemcell_stages(disk_format) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/bosh/stemcell/stage_collection.rb', line 55 def package_stemcell_stages(disk_format) case disk_format when 'raw' then raw_package_stages when 'qcow2' then qcow2_package_stages when 'ovf' then ovf_package_stages when 'files' then files_package_stages end end |