Module: Dynomatic

Extended by:
ActiveSupport::Autoload
Defined in:
lib/dynomatic.rb,
lib/dynomatic/master.rb,
lib/dynomatic/scaler.rb,
lib/dynomatic/version.rb,
lib/dynomatic/adapters.rb,
lib/dynomatic/hobby_scaler.rb,
lib/dynomatic/configuration.rb,
lib/dynomatic/adapters/delayed_job.rb

Defined Under Namespace

Modules: Adapters Classes: Configuration, HobbyScaler, Master, Scaler

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:

  • (configuration)


15
16
17
18
19
20
21
# File 'lib/dynomatic.rb', line 15

def self.configure
  configuration.adapter ||= Dynomatic::Adapters.detect

  yield(configuration)

  Dynomatic::Master.new(configuration).install!
end