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