Class: Kamal::Configuration::Sshkit
- Inherits:
-
Object
- Object
- Kamal::Configuration::Sshkit
show all
- Includes:
- Validation
- Defined in:
- lib/kamal/configuration/sshkit.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Validation
#validate!, #validation_yml
Constructor Details
#initialize(config:) ⇒ Sshkit
Returns a new instance of Sshkit.
6
7
8
9
|
# File 'lib/kamal/configuration/sshkit.rb', line 6
def initialize(config:)
@sshkit_config = config.raw_config.sshkit || {}
validate! sshkit_config
end
|
Instance Attribute Details
#sshkit_config ⇒ Object
Returns the value of attribute sshkit_config.
4
5
6
|
# File 'lib/kamal/configuration/sshkit.rb', line 4
def sshkit_config
@sshkit_config
end
|
Instance Method Details
#max_concurrent_starts ⇒ Object
11
12
13
|
# File 'lib/kamal/configuration/sshkit.rb', line 11
def max_concurrent_starts
sshkit_config.fetch("max_concurrent_starts", 30)
end
|
#pool_idle_timeout ⇒ Object
15
16
17
|
# File 'lib/kamal/configuration/sshkit.rb', line 15
def pool_idle_timeout
sshkit_config.fetch("pool_idle_timeout", 900)
end
|
#to_h ⇒ Object
19
20
21
|
# File 'lib/kamal/configuration/sshkit.rb', line 19
def to_h
sshkit_config
end
|