Class: VagrantPlugins::VagrantBosh::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::VagrantBosh::Config
- Defined in:
- lib/vagrant-bosh/config.rb
Instance Attribute Summary collapse
-
#agent_configuration ⇒ Object
Returns the value of attribute agent_configuration.
-
#agent_infrastructure ⇒ Object
Returns the value of attribute agent_infrastructure.
-
#agent_platform ⇒ Object
Returns the value of attribute agent_platform.
-
#assets_dir ⇒ Object
readonly
Returns the value of attribute assets_dir.
-
#base_dir ⇒ Object
Returns the value of attribute base_dir.
-
#config_path ⇒ Object
readonly
Returns the value of attribute config_path.
-
#create_release_cmd ⇒ Object
Command to run to create a BOSH release on the host.
-
#full_stemcell_compatibility ⇒ Object
Full stemcell compatibility forces provisioner to install all (not just minimum) dependencies usually found on a stemcell.
-
#local_blobstore_dir ⇒ Object
readonly
Returns the value of attribute local_blobstore_dir.
-
#manifest ⇒ Object
Manifest holds full BOSH deployment manifest as a string.
-
#manifest_path ⇒ Object
readonly
Returns the value of attribute manifest_path.
-
#repos_dir ⇒ Object
readonly
Returns the value of attribute repos_dir.
-
#synced_releases_dir ⇒ Object
readonly
Returns the value of attribute synced_releases_dir.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize(*args) ⇒ Config
constructor
A new instance of Config.
- #validate(machine) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Config
Returns a new instance of Config.
28 29 30 31 |
# File 'lib/vagrant-bosh/config.rb', line 28 def initialize(*args) super @base_dir = "/opt/bosh-provisioner" end |
Instance Attribute Details
#agent_configuration ⇒ Object
Returns the value of attribute agent_configuration.
21 22 23 |
# File 'lib/vagrant-bosh/config.rb', line 21 def agent_configuration @agent_configuration end |
#agent_infrastructure ⇒ Object
Returns the value of attribute agent_infrastructure.
21 22 23 |
# File 'lib/vagrant-bosh/config.rb', line 21 def agent_infrastructure @agent_infrastructure end |
#agent_platform ⇒ Object
Returns the value of attribute agent_platform.
21 22 23 |
# File 'lib/vagrant-bosh/config.rb', line 21 def agent_platform @agent_platform end |
#assets_dir ⇒ Object (readonly)
Returns the value of attribute assets_dir.
8 9 10 |
# File 'lib/vagrant-bosh/config.rb', line 8 def assets_dir @assets_dir end |
#base_dir ⇒ Object
Returns the value of attribute base_dir.
6 7 8 |
# File 'lib/vagrant-bosh/config.rb', line 6 def base_dir @base_dir end |
#config_path ⇒ Object (readonly)
Returns the value of attribute config_path.
10 11 12 |
# File 'lib/vagrant-bosh/config.rb', line 10 def config_path @config_path end |
#create_release_cmd ⇒ Object
Command to run to create a BOSH release on the host. BOSH release has a rake task to create a dev release because it creates locally versioned gems.
26 27 28 |
# File 'lib/vagrant-bosh/config.rb', line 26 def create_release_cmd @create_release_cmd end |
#full_stemcell_compatibility ⇒ Object
Full stemcell compatibility forces provisioner to install all (not just minimum) dependencies usually found on a stemcell.
19 20 21 |
# File 'lib/vagrant-bosh/config.rb', line 19 def full_stemcell_compatibility @full_stemcell_compatibility end |
#local_blobstore_dir ⇒ Object (readonly)
Returns the value of attribute local_blobstore_dir.
12 13 14 |
# File 'lib/vagrant-bosh/config.rb', line 12 def local_blobstore_dir @local_blobstore_dir end |
#manifest ⇒ Object
Manifest holds full BOSH deployment manifest as a string.
15 16 17 |
# File 'lib/vagrant-bosh/config.rb', line 15 def manifest @manifest end |
#manifest_path ⇒ Object (readonly)
Returns the value of attribute manifest_path.
10 11 12 |
# File 'lib/vagrant-bosh/config.rb', line 10 def manifest_path @manifest_path end |
#repos_dir ⇒ Object (readonly)
Returns the value of attribute repos_dir.
8 9 10 |
# File 'lib/vagrant-bosh/config.rb', line 8 def repos_dir @repos_dir end |
#synced_releases_dir ⇒ Object (readonly)
Returns the value of attribute synced_releases_dir.
12 13 14 |
# File 'lib/vagrant-bosh/config.rb', line 12 def synced_releases_dir @synced_releases_dir end |
Instance Method Details
#finalize! ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/vagrant-bosh/config.rb', line 33 def finalize! @assets_dir = File.join(@base_dir, "assets") @repos_dir = File.join(@base_dir, "repos") @manifest_path = File.join(@base_dir, "manifest.yml") @config_path = File.join(@base_dir, "config.json") @local_blobstore_dir = File.join(@base_dir, "blobstore") @synced_releases_dir = File.join(@base_dir, "synced-releases") @full_stemcell_compatibility = !!@full_stemcell_compatibility @create_release_cmd ||= "ruby -v; bosh -n create release --force" end |
#validate(machine) ⇒ Object
48 49 |
# File 'lib/vagrant-bosh/config.rb', line 48 def validate(machine) end |