Class: Bosh::Cli::BuildArtifact
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sha1 ⇒ Object
readonly
Returns the value of attribute sha1.
-
#tarball_path ⇒ Object
readonly
Returns the value of attribute tarball_path.
Instance Method Summary collapse
- #dev_artifact? ⇒ Boolean
-
#initialize(name, fingerprint, tarball_path, sha1, dependencies, is_new_version, is_dev_artifact) ⇒ BuildArtifact
constructor
A new instance of BuildArtifact.
- #new_version? ⇒ Boolean
- #promote_to_final ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(name, fingerprint, tarball_path, sha1, dependencies, is_new_version, is_dev_artifact) ⇒ BuildArtifact
Returns a new instance of BuildArtifact.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cli/build_artifact.rb', line 5 def initialize(name, fingerprint, tarball_path, sha1, dependencies, is_new_version, is_dev_artifact) @name = name @fingerprint = fingerprint @tarball_path = tarball_path @sha1 = sha1 @dependencies = dependencies @is_dev_artifact = is_dev_artifact @notes = [] @is_new_version = is_new_version end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
3 4 5 |
# File 'lib/cli/build_artifact.rb', line 3 def dependencies @dependencies end |
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
3 4 5 |
# File 'lib/cli/build_artifact.rb', line 3 def fingerprint @fingerprint end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/cli/build_artifact.rb', line 3 def name @name end |
#sha1 ⇒ Object (readonly)
Returns the value of attribute sha1.
3 4 5 |
# File 'lib/cli/build_artifact.rb', line 3 def sha1 @sha1 end |
#tarball_path ⇒ Object (readonly)
Returns the value of attribute tarball_path.
3 4 5 |
# File 'lib/cli/build_artifact.rb', line 3 def tarball_path @tarball_path end |
Instance Method Details
#dev_artifact? ⇒ Boolean
24 25 26 |
# File 'lib/cli/build_artifact.rb', line 24 def dev_artifact? @is_dev_artifact end |
#new_version? ⇒ Boolean
28 29 30 |
# File 'lib/cli/build_artifact.rb', line 28 def new_version? @is_new_version end |
#promote_to_final ⇒ Object
16 17 18 |
# File 'lib/cli/build_artifact.rb', line 16 def promote_to_final @is_dev_artifact = false end |
#version ⇒ Object
20 21 22 |
# File 'lib/cli/build_artifact.rb', line 20 def version fingerprint end |