Module: Pechkin
- Defined in:
- lib/pechkin.rb,
lib/pechkin/bot.rb,
lib/pechkin/cli.rb,
lib/pechkin/auth.rb,
lib/pechkin/app/app.rb,
lib/pechkin/channel.rb,
lib/pechkin/command.rb,
lib/pechkin/handler.rb,
lib/pechkin/message.rb,
lib/pechkin/version.rb,
lib/pechkin/exceptions.rb,
lib/pechkin/substitute.rb,
lib/pechkin/command/base.rb,
lib/pechkin/command/list.rb,
lib/pechkin/app/app_error.rb,
lib/pechkin/command/check.rb,
lib/pechkin/configuration.rb,
lib/pechkin/connector/base.rb,
lib/pechkin/app/app_builder.rb,
lib/pechkin/connector/slack.rb,
lib/pechkin/message_matcher.rb,
lib/pechkin/command/add_auth.rb,
lib/pechkin/message_template.rb,
lib/pechkin/prometheus_utils.rb,
lib/pechkin/command/send_data.rb,
lib/pechkin/command/run_server.rb,
lib/pechkin/connector/telegram.rb,
lib/pechkin/app/request_handler.rb,
lib/pechkin/configuration/configuration_loader.rb,
lib/pechkin/configuration/configuration_loader_bots.rb,
lib/pechkin/configuration/configuration_loader_views.rb,
lib/pechkin/configuration/configuration_loader_channels.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Auth, CLIHelper, Command, ConfigurationLoader, Connector, PrometheusUtils, Version Classes: App, AppBuilder, AppError, Bot, CLI, Channel, ChannelNotFoundError, Configuration, ConfigurationError, ConfigurationLoaderBots, ConfigurationLoaderChannels, ConfigurationLoaderViews, Handler, Message, MessageBinding, MessageContentIsEmptyError, MessageMatchError, MessageMatcher, MessageNotFoundError, MessageTemplate, RequestHandler, Substitute
Class Method Summary collapse
Class Method Details
.run ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/pechkin.rb', line 28 def run = CLI.parse(ARGV) cmd = Command::Dispatcher.new().dispatch cmd.execute rescue StandardError => e warn "Error: #{e.message}" warn "\t#{e.backtrace.reverse.join("\n\t")}" if .debug? exit 2 end |