class Ghundle::Command::ListAll

Lists all available hooks stored in the hook home directory.

Public Instance Methods

call() click to toggle source
# File lib/ghundle/command/list_all.rb, line 8
def call
  puts output.strip
end
output() click to toggle source
# File lib/ghundle/command/list_all.rb, line 12
def output
  Dir[config.hooks_root.join('*')].map do |path|
    next if not File.directory?(path)

    hook = Hook.new(Source::Local.new(path))
    hook_description(hook)
  end.join("\n")
end