Sha256: fddaedc8d629d88da3cd8771b8692962ead2c98ee2aa14aa6941989bf9dd74cf

Contents?: true

Size: 809 Bytes

Versions: 270

Compression:

Stored size: 809 Bytes

Contents

require 'alpha_omega/deploy/local_dependency'
require 'alpha_omega/deploy/remote_dependency'

module Capistrano
  module Deploy
    class Dependencies
      include Enumerable

      attr_reader :configuration

      def initialize(configuration)
        @configuration = configuration
        @dependencies = []
        yield self if block_given?
      end

      def check
        yield self
        self
      end

      def remote
        dep = RemoteDependency.new(configuration)
        @dependencies << dep
        dep
      end

      def local
        dep = LocalDependency.new(configuration)
        @dependencies << dep
        dep
      end

      def each
        @dependencies.each { |d| yield d }
        self
      end

      def pass?
        all? { |d| d.pass? }
      end
    end
  end
end

Version data entries

270 entries across 270 versions & 1 rubygems

Version Path
alpha_omega-1.5.15 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.14 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.12 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.10 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.9 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.8 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.7 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.6 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.2.1 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.4 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.3 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.2 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.1 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.5.0 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.3.48 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.3.47 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.3.46 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.3.45 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.3.44 lib/alpha_omega/deploy/dependencies.rb
alpha_omega-1.3.43 lib/alpha_omega/deploy/dependencies.rb