Class: DockerSwarm::Configuration
- Inherits:
-
Object
- Object
- DockerSwarm::Configuration
- Defined in:
- lib/docker_swarm/configuration.rb
Instance Attribute Summary collapse
-
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#socket_path ⇒ Object
Returns the value of attribute socket_path.
-
#write_timeout ⇒ Object
Returns the value of attribute write_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_timeout ⇒ Object
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_level ⇒ Object
Returns the value of attribute log_level.
7 8 9 |
# File 'lib/docker_swarm/configuration.rb', line 7 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/docker_swarm/configuration.rb', line 7 def logger @logger end |
#max_retries ⇒ Object
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_timeout ⇒ Object
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_path ⇒ Object
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_timeout ⇒ Object
Returns the value of attribute write_timeout.
8 9 10 |
# File 'lib/docker_swarm/configuration.rb', line 8 def write_timeout @write_timeout end |