Module: Bosh::Stemcell::Agent

Defined in:
lib/bosh/stemcell/agent.rb

Defined Under Namespace

Classes: Go, NullAgent

Class Method Summary collapse

Class Method Details

.for(name) ⇒ Object


3
4
5
6
7
8
9
10
11
12
# File 'lib/bosh/stemcell/agent.rb', line 3

def self.for(name)
  case name
    when 'go'
      Go.new
    when 'null'
      NullAgent.new
    else
      raise ArgumentError.new("invalid agent: #{name}")
  end
end