Class: CaptainHook::DSL::HandlePostReceive
- Inherits:
-
Object
- Object
- CaptainHook::DSL::HandlePostReceive
- Defined in:
- lib/captain_hook/dsl/handle_post_receive.rb
Instance Method Summary collapse
- #author ⇒ Object
-
#initialize(post_receive_event) ⇒ HandlePostReceive
constructor
A new instance of HandlePostReceive.
- #message ⇒ Object
- #ref_name ⇒ Object
- #run(&block) ⇒ Object
Constructor Details
#initialize(post_receive_event) ⇒ HandlePostReceive
Returns a new instance of HandlePostReceive.
4 5 6 |
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 4 def initialize(post_receive_event) @post_receive_event = post_receive_event end |
Instance Method Details
#author ⇒ Object
17 18 19 |
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 17 def @post_receive_event. end |
#message ⇒ Object
8 9 10 11 |
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 8 def puts "post-receive: #{@post_receive_event.}" @post_receive_event. end |
#ref_name ⇒ Object
13 14 15 |
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 13 def ref_name @post_receive_event.ref_name end |
#run(&block) ⇒ Object
21 22 23 |
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 21 def run &block instance_eval &block end |