Class: Celebration

Inherits:
Object
  • Object
show all
Defined in:
lib/release_party/celebration.rb

Overview

Celebration is effectively an abstract class that handles before and after deploy callbacks

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#environmentObject (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_deployObject



23
24
# File 'lib/release_party/celebration.rb', line 23

def after_deploy
end

#before_deployObject



20
21
# File 'lib/release_party/celebration.rb', line 20

def before_deploy
end

#tasksObject



16
17
18
# File 'lib/release_party/celebration.rb', line 16

def tasks
  []
end