Class: Bosh::Deployer::Cli::Commands::ProvisionStemcells
- Inherits:
-
Object
- Object
- Bosh::Deployer::Cli::Commands::ProvisionStemcells
- Defined in:
- lib/bosh-deployer/cli/commands/provision_stemcells.rb
Instance Attribute Summary collapse
-
#manifest_path ⇒ Object
readonly
Returns the value of attribute manifest_path.
Instance Method Summary collapse
-
#initialize(manifest_path = default_manifest_path) ⇒ ProvisionStemcells
constructor
A new instance of ProvisionStemcells.
- #perform ⇒ Object
Constructor Details
#initialize(manifest_path = default_manifest_path) ⇒ ProvisionStemcells
Returns a new instance of ProvisionStemcells.
7 8 9 |
# File 'lib/bosh-deployer/cli/commands/provision_stemcells.rb', line 7 def initialize(manifest_path =default_manifest_path ) @manifest_path = manifest_path end |
Instance Attribute Details
#manifest_path ⇒ Object (readonly)
Returns the value of attribute manifest_path.
6 7 8 |
# File 'lib/bosh-deployer/cli/commands/provision_stemcells.rb', line 6 def manifest_path @manifest_path end |
Instance Method Details
#perform ⇒ Object
11 12 13 14 15 16 |
# File 'lib/bosh-deployer/cli/commands/provision_stemcells.rb', line 11 def perform puts "Downloading #{stemcell.tar_filename} from bosh-jenkins-atifacts ..." stemcell.download puts 'uploading stemcell ...' stemcell.upload end |