Sha256: 76abab8560e1345ec67fafb1d541d6363ac6c931eed875a1b01c740a48375f5a

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

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

module Taketo
  module Constructs
    class Environment < BaseConstruct
      has_nodes :servers, :server

      def initialize(name)
        super(name)
      end

      def project_name
        if parent.is_a?(Project)
          parent.name
        else
          ""
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
taketo-0.1.3 lib/taketo/constructs/environment.rb
taketo-0.1.2 lib/taketo/constructs/environment.rb
taketo-0.1.1 lib/taketo/constructs/environment.rb
taketo-0.1.0 lib/taketo/constructs/environment.rb