Sha256: 6aec41613a03dad6a826dfb959af16a60e4a2ef06ade1afe3bbd21f8425fbdcd
Contents?: true
Size: 479 Bytes
Versions: 2
Compression:
Stored size: 479 Bytes
Contents
require 'taketo/constructs/base_construct' require 'taketo/support' module Taketo module Constructs class Environment < BaseConstruct attr_reader :servers def initialize(name) super @servers = Taketo::Support::NamedNodesCollection.new end def append_server(server) server.environment = self @servers << server end def find_server(name) @servers.find_by_name(name) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taketo-0.0.4 | lib/taketo/constructs/environment.rb |
taketo-0.0.3 | lib/taketo/constructs/environment.rb |