module Qiita::Team::Services::Hooks

Public Class Methods

active_hooks() click to toggle source

@return [Array<Qiita::Team::Services::Hooks::Base>]

# File lib/qiita/team/services/hooks.rb, line 10
def active_hooks
  all_hooks.reject(&:deprecated?)
end
all_hook_types() click to toggle source

@return [Array<String>]

# File lib/qiita/team/services/hooks.rb, line 20
def all_hook_types
  all_hooks.map(&:hook_type)
end
all_hooks() click to toggle source

@return [Array<Qiita::Team::Services::Hooks::Base>]

# File lib/qiita/team/services/hooks.rb, line 5
def all_hooks
  @all_hooks ||= []
end
deprecated_hooks() click to toggle source

@return [Array<Qiita::Team::Services::Hooks::Base>]

# File lib/qiita/team/services/hooks.rb, line 15
def deprecated_hooks
  all_hooks.select(&:deprecated?)
end