Class: Celebration
- Inherits:
-
Object
- Object
- Celebration
- Defined in:
- lib/release_party/celebration.rb
Overview
Celebration is effectively an abstract class that handles before and after deploy callbacks
Direct Known Subclasses
Celebrations::Campfire, Celebrations::Git, Celebrations::Mailer, Celebrations::PivotalTracker
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
Class Method Summary collapse
Instance Method Summary collapse
- #after_deploy ⇒ Object
- #before_deploy ⇒ Object
-
#initialize(environment) ⇒ Celebration
constructor
A new instance of Celebration.
- #tasks ⇒ Object
Constructor Details
#initialize(environment) ⇒ Celebration
Returns a new instance of Celebration.
12 13 14 |
# File 'lib/release_party/celebration.rb', line 12 def initialize(environment) @environment = environment end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
6 7 8 |
# File 'lib/release_party/celebration.rb', line 6 def environment @environment end |
Class Method Details
.inherited(subclass) ⇒ Object
8 9 10 |
# File 'lib/release_party/celebration.rb', line 8 def self.inherited(subclass) (@@celebrations ||= []) << subclass end |
Instance Method Details
#after_deploy ⇒ Object
23 24 |
# File 'lib/release_party/celebration.rb', line 23 def after_deploy end |
#before_deploy ⇒ Object
20 21 |
# File 'lib/release_party/celebration.rb', line 20 def before_deploy end |
#tasks ⇒ Object
16 17 18 |
# File 'lib/release_party/celebration.rb', line 16 def tasks [] end |