lib/bosh/stemcell/agent.rb in bosh-stemcell-1.2175.0 vs lib/bosh/stemcell/agent.rb in bosh-stemcell-1.2200.0

- old
+ new

@@ -4,13 +4,25 @@ case name when 'go' Go.new when 'ruby' Ruby.new + when 'null' + NullAgent.new else raise ArgumentError.new("invalid agent: #{name}") end + end + + class NullAgent + def name + 'null' + end + + def ==(other) + name == other.name + end end class Go def name 'go'