Class: StiDeploy::DeployType
- Inherits:
-
Object
- Object
- StiDeploy::DeployType
- Defined in:
- lib/sti_deploy/deploy_type.rb
Constant Summary collapse
- DEPLOY_TYPES =
{ c: 'release_candidate', h: 'hotfix', p: 'pre_release', r: 'release' }
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize(type) ⇒ DeployType
constructor
A new instance of DeployType.
- #to_s ⇒ Object
Constructor Details
#initialize(type) ⇒ DeployType
Returns a new instance of DeployType.
14 15 16 |
# File 'lib/sti_deploy/deploy_type.rb', line 14 def initialize(type) @type = type.downcase end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/sti_deploy/deploy_type.rb', line 5 def type @type end |
Instance Method Details
#full_name ⇒ Object
18 19 20 |
# File 'lib/sti_deploy/deploy_type.rb', line 18 def full_name DEPLOY_TYPES[type.to_sym] end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/sti_deploy/deploy_type.rb', line 22 def to_s full_name end |