Class: VagrantPlugins::VagrantBosh::Deployment::UploadedRelease

Inherits:
Struct
  • Object
show all
Defined in:
lib/vagrant-bosh/deployment/uploadable_release.rb

Overview

UploadedRelease represents a release that was synced to a guest FS location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#guest_dirObject

Returns the value of attribute guest_dir

Returns:

  • (Object)

    the current value of guest_dir



76
77
78
# File 'lib/vagrant-bosh/deployment/uploadable_release.rb', line 76

def guest_dir
  @guest_dir
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



76
77
78
# File 'lib/vagrant-bosh/deployment/uploadable_release.rb', line 76

def name
  @name
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



76
77
78
# File 'lib/vagrant-bosh/deployment/uploadable_release.rb', line 76

def version
  @version
end

Instance Method Details

#as_hashObject



77
78
79
# File 'lib/vagrant-bosh/deployment/uploadable_release.rb', line 77

def as_hash
  {"name" => name, "version" => version, "url" => "dir://#{guest_dir}"}
end