Class: GHRH::Command::Hooks

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/ghrh/command/hooks.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/ghrh/command/hooks.rb', line 7

def execute
  GHRH::Config.fetch_hooks if refresh?

  hooks = GHRH::Config.hooks

  if hook
    pp hooks[hook]
  else
    puts hooks.keys.sort
  end
end