Class: Dpl::Provider::Status
- Inherits:
-
Struct
- Object
- Struct
- Dpl::Provider::Status
- Defined in:
- lib/dpl/provider/status.rb
Constant Summary collapse
- STATUS =
%i[dev alpha beta stable deprecated].freeze
- MSG =
{ dev: 'Support for deployments to %s is in **development**', alpha: 'Support for deployments to %s is in **alpha**', beta: 'Support for deployments to %s is in **beta**', deprecated: 'Support for deployments to %s is *deprecated**', pre_stable: 'Please see [Maturity Levels](%s) for details.' }.freeze
- URL =
'https://github.com/travis-ci/dpl/#maturity-levels'
Instance Attribute Summary collapse
-
#info ⇒ Object
Returns the value of attribute info.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #announce? ⇒ Boolean
-
#initialize(provider, status, info) ⇒ Status
constructor
A new instance of Status.
- #msg ⇒ Object
Constructor Details
#initialize(provider, status, info) ⇒ Status
Returns a new instance of Status.
18 19 20 21 |
# File 'lib/dpl/provider/status.rb', line 18 def initialize(provider, status, info) unknown!(status) unless known?(status) super end |
Instance Attribute Details
#info ⇒ Object
Returns the value of attribute info
5 6 7 |
# File 'lib/dpl/provider/status.rb', line 5 def info @info end |
#provider ⇒ Object
Returns the value of attribute provider
5 6 7 |
# File 'lib/dpl/provider/status.rb', line 5 def provider @provider end |
#status ⇒ Object
Returns the value of attribute status
5 6 7 |
# File 'lib/dpl/provider/status.rb', line 5 def status @status end |
Instance Method Details
#announce? ⇒ Boolean
23 24 25 |
# File 'lib/dpl/provider/status.rb', line 23 def announce? !stable? end |