Module: Rounders

Defined in:
lib/rounders/generators/base.rb,
lib/rounders.rb,
lib/rounders/mail.rb,
lib/rounders/util.rb,
lib/rounders/logger.rb,
lib/rounders/rounder.rb,
lib/rounders/version.rb,
lib/rounders/commander.rb,
lib/rounders/application.rb,
lib/rounders/matchers/cc.rb,
lib/rounders/matchers/to.rb,
lib/rounders/stores/store.rb,
lib/rounders/configuration.rb,
lib/rounders/matchers/body.rb,
lib/rounders/matchers/from.rb,
lib/rounders/stores/memory.rb,
lib/rounders/receivers/mail.rb,
lib/rounders/handlers/handler.rb,
lib/rounders/matchers/matcher.rb,
lib/rounders/matchers/subject.rb,
lib/rounders/matchers/filename.rb,
lib/rounders/plugins/pluggable.rb,
lib/rounders/receivers/receiver.rb,
lib/rounders/plugins/plugin_loader.rb,
lib/rounders/commands/local_command.rb,
lib/rounders/commands/global_command.rb,
lib/rounders/generators/app/app_generator.rb,
lib/rounders/commands/sub_commands/generate.rb,
lib/rounders/generators/plugin/plugin_generator.rb,
lib/rounders/generators/handler/handler_generator.rb,
lib/rounders/generators/matcher/matcher_generator.rb,
lib/rounders/generators/receiver/receiver_generator.rb

Overview

rubocop:disable Style/CyclomaticComplexity, Style/AbcSize:

Defined Under Namespace

Modules: Commands, Generators, Handlers, Logger, Matchers, Plugins, Receivers, Stores Classes: Application, Commander, DefaultConfiguration, Mail, Rounder, Util

Constant Summary collapse

CONFIG_DIR_PATH =

Your code goes here…

File.join(Dir.pwd, 'config').freeze
APP_PATH =
File.join(Dir.pwd, Rounders::Application.config.app_path).freeze
VERSION =
'0.7.3'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject

Returns the value of attribute logger.



22
23
24
# File 'lib/rounders.rb', line 22

def logger
  @logger
end

Class Method Details

.global?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/rounders.rb', line 24

def global?
  !Pathname(Rounders::APP_PATH).exist?
end

.handlersObject



28
29
30
# File 'lib/rounders.rb', line 28

def handlers
  @_handlers ||= []
end

.matchersObject



32
33
34
# File 'lib/rounders.rb', line 32

def matchers
  @_matchers ||= {}
end

.receiversObject



36
37
38
# File 'lib/rounders.rb', line 36

def receivers
  @_receivers ||= []
end

.storesObject



40
41
42
# File 'lib/rounders.rb', line 40

def stores
  @_stores ||= {}
end