Class: Bosh::Deployer::Cli::Commands::ProvisionStemcells

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh-deployer/cli/commands/provision_stemcells.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject (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

#performObject



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