Module: SSHKit::Backend::Netssh::LimitConcurrentStartsClass
- Included in:
- SSHKit::Backend::Netssh
- Defined in:
- lib/kamal/sshkit_with_ext.rb
Instance Attribute Summary collapse
-
#start_semaphore ⇒ Object
readonly
Returns the value of attribute start_semaphore.
Instance Method Summary collapse
Instance Attribute Details
#start_semaphore ⇒ Object (readonly)
Returns the value of attribute start_semaphore.
66 67 68 |
# File 'lib/kamal/sshkit_with_ext.rb', line 66 def start_semaphore @start_semaphore end |
Instance Method Details
#configure(&block) ⇒ Object
68 69 70 71 72 73 74 |
# File 'lib/kamal/sshkit_with_ext.rb', line 68 def configure(&block) super &block # Create this here to avoid lazy creation by multiple threads if config.max_concurrent_starts @start_semaphore = Concurrent::Semaphore.new(config.max_concurrent_starts) end end |