Class: Rails::Hyperdrive::ArtifactStatus::Entry
- Inherits:
-
Struct
- Object
- Struct
- Rails::Hyperdrive::ArtifactStatus::Entry
- Defined in:
- lib/rails/hyperdrive/artifact_status.rb
Instance Attribute Summary collapse
-
#artifact ⇒ Object
Returns the value of attribute artifact.
-
#bundle_source ⇒ Object
Returns the value of attribute bundle_source.
-
#locked_source ⇒ Object
Returns the value of attribute locked_source.
-
#path ⇒ Object
Returns the value of attribute path.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
Instance Attribute Details
#artifact ⇒ Object
Returns the value of attribute artifact
13 14 15 |
# File 'lib/rails/hyperdrive/artifact_status.rb', line 13 def artifact @artifact end |
#bundle_source ⇒ Object
Returns the value of attribute bundle_source
13 14 15 |
# File 'lib/rails/hyperdrive/artifact_status.rb', line 13 def bundle_source @bundle_source end |
#locked_source ⇒ Object
Returns the value of attribute locked_source
13 14 15 |
# File 'lib/rails/hyperdrive/artifact_status.rb', line 13 def locked_source @locked_source end |
#path ⇒ Object
Returns the value of attribute path
13 14 15 |
# File 'lib/rails/hyperdrive/artifact_status.rb', line 13 def path @path end |
#state ⇒ Object
Returns the value of attribute state
13 14 15 |
# File 'lib/rails/hyperdrive/artifact_status.rb', line 13 def state @state end |
Instance Method Details
#to_s ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/rails/hyperdrive/artifact_status.rb', line 14 def to_s case state when :missing then "#{path} (from #{bundle_source})" when :outdated then "#{path} (#{locked_source} → #{bundle_source})" when :orphaned then "#{path} (source #{locked_source} no longer in bundle)" else path end end |