Sha256: c01cb140c6d7d2a3869015bf41ca9b2d00fa02467450650e36fc8c86746b456b

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

require 'taketo/constructs/base_construct'
require 'taketo/support'

module Taketo
  module Constructs
    class Config < BaseConstruct
      attr_reader :projects
      attr_accessor :default_destination

      def initialize
        @projects = Taketo::Support::NamedNodesCollection.new
      end

      def append_project(project)
        @projects << project
      end

      def find_project(name)
        @projects.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/config.rb
taketo-0.0.3 lib/taketo/constructs/config.rb