Module: Fleet

Extended by:
Configuration
Defined in:
lib/fleet.rb,
lib/fleet/error.rb,
lib/fleet/client.rb,
lib/fleet/request.rb,
lib/fleet/version.rb,
lib/fleet/connection.rb,
lib/fleet/client/unit.rb,
lib/fleet/client/state.rb,
lib/fleet/configuration.rb,
lib/fleet/client/machines.rb,
lib/fleet/service_definition.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: Client, ConnectionError, Error, ServiceDefinition

Constant Summary collapse

VERSION =
'1.2.0'.freeze

Constants included from Configuration

Configuration::DEFAULT_FLEET_API_URL, Configuration::DEFAULT_FLEET_API_VERSION, Configuration::DEFAULT_LOGGER, Configuration::DEFAULT_OPEN_TIMEOUT, Configuration::DEFAULT_READ_TIMEOUT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

extended, options, reset

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Fleet)

    the object that the method was called on



11
12
13
14
# File 'lib/fleet.rb', line 11

def self.configure
  yield self
  true
end

.new(options = {}) ⇒ Object



7
8
9
# File 'lib/fleet.rb', line 7

def self.new(options={})
  Fleet::Client.new(options)
end