Sha256: f1d50311add24cb6382156bddba1fa17d9a59bf61dc90aa3a663f7eea6bcc4d4

Contents?: true

Size: 342 Bytes

Versions: 11

Compression:

Stored size: 342 Bytes

Contents

class Kamal::Configuration::Sshkit
  def initialize(config:)
    @options = config.raw_config.sshkit || {}
  end

  def max_concurrent_starts
    options.fetch("max_concurrent_starts", 30)
  end

  def pool_idle_timeout
    options.fetch("pool_idle_timeout", 900)
  end

  def to_h
    options
  end

  private
    attr_accessor :options
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kamal-1.6.0 lib/kamal/configuration/sshkit.rb
kamal-1.5.1 lib/kamal/configuration/sshkit.rb
kamal-1.5.0 lib/kamal/configuration/sshkit.rb
kamal-1.4.0 lib/kamal/configuration/sshkit.rb
kamal-1.3.1 lib/kamal/configuration/sshkit.rb
kamal-1.3.0 lib/kamal/configuration/sshkit.rb
kamal-1.2.0 lib/kamal/configuration/sshkit.rb
kamal-1.1.0 lib/kamal/configuration/sshkit.rb
kamal-1.0.0 lib/kamal/configuration/sshkit.rb
kamal-0.16.1 lib/kamal/configuration/sshkit.rb
kamal-0.16.0 lib/kamal/configuration/sshkit.rb