Module: Crontinel

Defined in:
lib/crontinel.rb,
lib/crontinel/version.rb

Defined Under Namespace

Classes: Client, Config, Configuration, ConfigurationError, Error, NetworkError, TaskRun, WorkerState

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.client(api_key: nil, endpoint: nil, &block) ⇒ Object



259
260
261
# File 'lib/crontinel.rb', line 259

def client(api_key: nil, endpoint: nil, &block)
  Client.new(api_key: api_key, endpoint: endpoint, &block)
end

.configObject



270
271
272
# File 'lib/crontinel.rb', line 270

def config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object Also known as: setup

Rails-style configure block (used by crontinel-rails railtie)

Yields:



264
265
266
267
# File 'lib/crontinel.rb', line 264

def configure
  yield config
  config
end