class SiteHook::CliClasses::Server
Public Class Methods
new(config)
click to toggle source
# File lib/site_hook/config.rb, line 335 def initialize(config) @configured_commands = {} config.each do |command, values| @configured_commands.store(command, values) end end
Public Instance Methods
inspect()
click to toggle source
# File lib/site_hook/config.rb, line 346 def inspect outputs = [] @configured_commands.each do |m, body| outputs << "#{m}=#{body}" end "#<SiteHook::Cli::Server #{outputs.join(" ")}>" end
listen()
click to toggle source
# File lib/site_hook/config.rb, line 342 def listen Command.new(:listen, @configured_commands[:listen]) end