Module: CaptainHook

Defined in:
lib/captain_hook.rb,
lib/captain_hook/dsl.rb,
lib/captain_hook/base.rb,
lib/captain_hook/events.rb,
lib/captain_hook/dsl/base.rb,
lib/captain_hook/events/post_commit.rb,
lib/captain_hook/events/post_receive.rb,
lib/captain_hook/dsl/handle_post_commit.rb,
lib/captain_hook/dsl/handle_post_receive.rb

Defined Under Namespace

Modules: DSL, Events Classes: Base

Class Method Summary collapse

Class Method Details

.from_path(path) ⇒ Object



8
9
10
11
# File 'lib/captain_hook.rb', line 8

def self.from_path(path)
  repo = Grit::Repo.new(path)
  Base.new(repo)
end