Sha256: ee060beeb3692c20a0efa4eb39559e7535be6f2fb7a16096de03f06046d8b73d

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 Bytes

Contents

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

module Taketo
  module Constructs
    class Project < BaseConstruct
      has_nodes :environments, :environment
      has_nodes :servers, :server

      def has_servers?
        has_nodes?(:servers) || environments.any?(&:has_servers?)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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