Module: Jackal::Utils
- Defined in:
- lib/jackal/utils.rb,
lib/jackal/utils/spec.rb,
lib/jackal/utils/config.rb,
lib/jackal/utils/payload.rb,
lib/jackal/utils/process.rb,
lib/jackal/utils/http_api.rb,
lib/jackal/utils/constants.rb,
lib/jackal/utils/spec/callback_local.rb
Overview
Helper utilities
Defined Under Namespace
Modules: Config, Constants, Payload, Spec Classes: HttpApi, Process
Class Method Summary collapse
-
.load_http_hook ⇒ TrueClass, FalseClass
Load thee HTTP Hook if configured.
Methods included from Payload
Methods included from Constants
Class Method Details
.load_http_hook ⇒ TrueClass, FalseClass
Load thee HTTP Hook if configured
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/jackal/utils.rb', line 22 def load_http_hook if(Carnivore::Config.get(:http_hook)) Carnivore.configure do Carnivore::Source.build( :type => :http_endpoints, :args => { :name => :http_hook, :bind => Carnivore::Config.get(:http_hook, :bind) || "0.0.0.0", :port => Carnivore::Config.get(:http_hook, :port) || 8989 } ) end true else false end end |