Class: Release
- Inherits:
-
Object
- Object
- Release
- Defined in:
- lib/cluster/release.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#label ⇒ Object
Returns the value of attribute label.
-
#tag ⇒ Object
Returns the value of attribute tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Release
constructor
A new instance of Release.
Constructor Details
#initialize(*args) ⇒ Release
Returns a new instance of Release.
7 8 9 10 11 12 13 14 15 |
# File 'lib/cluster/release.rb', line 7 def initialize(*args) = args. .each do |key, value| func = "#{key}=" if self.respond_to? func self.send func, value end end end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
2 3 4 |
# File 'lib/cluster/release.rb', line 2 def created_at @created_at end |
#environment ⇒ Object
Returns the value of attribute environment.
2 3 4 |
# File 'lib/cluster/release.rb', line 2 def environment @environment end |
#label ⇒ Object
Returns the value of attribute label.
2 3 4 |
# File 'lib/cluster/release.rb', line 2 def label @label end |
#tag ⇒ Object
Returns the value of attribute tag.
2 3 4 |
# File 'lib/cluster/release.rb', line 2 def tag @tag end |
Class Method Details
.current(environment = 'staging') ⇒ Object
22 23 24 |
# File 'lib/cluster/release.rb', line 22 def current(environment = 'staging') Infrastructure.current.release_class.current(environment) end |
.find(env, tag) ⇒ Object
26 27 28 |
# File 'lib/cluster/release.rb', line 26 def find(env, tag) Infrastructure.current.release_class.find(environment, tag) end |