Module: Proxy::Omaha::Distribution

Defined in:
lib/smart_proxy_omaha/distribution.rb

Defined Under Namespace

Classes: Base, Coreos, Flatcar

Class Method Summary collapse

Class Method Details

.new(distribution) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/smart_proxy_omaha/distribution.rb', line 6

def self.new(distribution)
  case distribution
  when 'coreos'
    Coreos.new
  when 'flatcar'
    Flatcar.new
  else
    raise "Unsupported distribution."
  end
end