Class: DockerSwarm::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/docker_swarm/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
17
18
# File 'lib/docker_swarm/configuration.rb', line 10

def initialize
  @socket_path = "unix:///var/run/docker.sock"
  @logger = Logger.new($stdout)
  @log_level = Logger::INFO
  @read_timeout = 60.0
  @write_timeout = 60.0
  @connect_timeout = 10.0
  @max_retries = 3
end

Instance Attribute Details

#connect_timeoutObject

Returns the value of attribute connect_timeout.



8
9
10
# File 'lib/docker_swarm/configuration.rb', line 8

def connect_timeout
  @connect_timeout
end

#log_levelObject

Returns the value of attribute log_level.



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

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#max_retriesObject

Returns the value of attribute max_retries.



8
9
10
# File 'lib/docker_swarm/configuration.rb', line 8

def max_retries
  @max_retries
end

#read_timeoutObject

Returns the value of attribute read_timeout.



8
9
10
# File 'lib/docker_swarm/configuration.rb', line 8

def read_timeout
  @read_timeout
end

#socket_pathObject

Returns the value of attribute socket_path.



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

def socket_path
  @socket_path
end

#write_timeoutObject

Returns the value of attribute write_timeout.



8
9
10
# File 'lib/docker_swarm/configuration.rb', line 8

def write_timeout
  @write_timeout
end