Class: CaptainHook::DSL::HandlePostCommit

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/captain_hook/dsl/handle_post_commit.rb

Instance Method Summary collapse

Methods included from Base

#run

Constructor Details

#initialize(event) ⇒ HandlePostCommit

Returns a new instance of HandlePostCommit.



6
7
8
# File 'lib/captain_hook/dsl/handle_post_commit.rb', line 6

def initialize(event)
  @event = event
end

Instance Method Details

#authorObject



14
15
16
# File 'lib/captain_hook/dsl/handle_post_commit.rb', line 14

def author
  @event.author
end

#diffObject



18
19
20
# File 'lib/captain_hook/dsl/handle_post_commit.rb', line 18

def diff
  @event.diff
end

#messageObject



10
11
12
# File 'lib/captain_hook/dsl/handle_post_commit.rb', line 10

def message
  @event.message
end

#ref_nameObject



22
23
24
# File 'lib/captain_hook/dsl/handle_post_commit.rb', line 22

def ref_name
  @event.ref_name
end