Class: Bosh::Cli::BuildArtifact

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/build_artifact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



3
4
5
# File 'lib/cli/build_artifact.rb', line 3

def dependencies
  @dependencies
end

#fingerprintObject (readonly)

Returns the value of attribute fingerprint.



3
4
5
# File 'lib/cli/build_artifact.rb', line 3

def fingerprint
  @fingerprint
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/cli/build_artifact.rb', line 3

def name
  @name
end

#sha1Object (readonly)

Returns the value of attribute sha1.



3
4
5
# File 'lib/cli/build_artifact.rb', line 3

def sha1
  @sha1
end

#tarball_pathObject (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

Returns:

  • (Boolean)


24
25
26
# File 'lib/cli/build_artifact.rb', line 24

def dev_artifact?
  @is_dev_artifact
end

#new_version?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/cli/build_artifact.rb', line 28

def new_version?
  @is_new_version
end

#promote_to_finalObject



16
17
18
# File 'lib/cli/build_artifact.rb', line 16

def promote_to_final
  @is_dev_artifact = false
end

#versionObject



20
21
22
# File 'lib/cli/build_artifact.rb', line 20

def version
  fingerprint
end