Module: OmniHooks

Defined in:
lib/omnihooks.rb,
lib/omnihooks/builder.rb,
lib/omnihooks/version.rb,
lib/omnihooks/strategy.rb,
lib/omnihooks/strategies/developer.rb

Defined Under Namespace

Modules: Strategies, Strategy, Utils Classes: Builder, Configuration

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configObject



46
47
48
# File 'lib/omnihooks.rb', line 46

def self.config
  Configuration.instance
end

.configure {|config| ... } ⇒ Object

Yields:



50
51
52
# File 'lib/omnihooks.rb', line 50

def self.configure
  yield config
end

.loggerObject



54
55
56
# File 'lib/omnihooks.rb', line 54

def self.logger
  config.logger
end

.strategiesArray<Object>

Collection of current strategies

Returns:

  • (Array<Object>)

    strategy collection



17
18
19
# File 'lib/omnihooks.rb', line 17

def self.strategies
  @strategies ||= []
end