Module: Bane

Defined in:
lib/bane/version.rb,
lib/bane/launcher.rb,
lib/bane/behavior_maker.rb,
lib/bane/arguments_parser.rb,
lib/bane/behaviors/servers/exported.rb,
lib/bane/command_line_configuration.rb,
lib/bane/behaviors/responders/exported.rb,
lib/bane/behaviors/responders/echo_response.rb,
lib/bane/behaviors/responders/for_each_line.rb,
lib/bane/behaviors/responders/never_respond.rb,
lib/bane/behaviors/responders/slow_response.rb,
lib/bane/behaviors/servers/responder_server.rb,
lib/bane/behaviors/responders/fixed_response.rb,
lib/bane/behaviors/responders/deluge_response.rb,
lib/bane/behaviors/responders/random_response.rb,
lib/bane/behaviors/responders/newline_response.rb,
lib/bane/behaviors/responders/close_after_pause.rb,
lib/bane/behaviors/responders/close_immediately.rb,
lib/bane/behaviors/servers/timeout_in_listen_queue.rb,
lib/bane/behaviors/responders/http_refuse_all_credentials.rb

Defined Under Namespace

Modules: Behaviors Classes: ArgumentsParser, BehaviorMaker, CommandLineConfiguration, ConfigurationError, Launcher, ParsedArguments, ResponderMaker, UnknownBehaviorError

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.find_makeablesObject



5
6
7
8
# File 'lib/bane/command_line_configuration.rb', line 5

def self.find_makeables
  Hash[Bane::Behaviors::Responders::EXPORTED.map { |responder| [responder.unqualified_name, ResponderMaker.new(responder)] }]
  .merge(Hash[Bane::Behaviors::Servers::EXPORTED.map { |server| [server.unqualified_name, server] }])
end