Sha256: 7032bc1005c3c1545c19f0a0946898942bc849016b4b55a21c8b54ca828ed234

Contents?: true

Size: 616 Bytes

Versions: 7

Compression:

Stored size: 616 Bytes

Contents

module GitCompound
  module Task
    # Task for all descendant components in manifest
    #
    class TaskAll < Task
      def initialize(name, manifest, &block)
        super
        @components = components_collect!
      end

      def execute
        @components.each_value do |component|
          execute_on(component.path, component)
        end
      end

      private

      def components_collect!
        components = {}
        @manifest.process(Worker::CircularDependencyChecker.new,
                          Worker::ComponentsCollector.new(components))
        components
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
git_compound-0.2.2 lib/git_compound/task/task_all.rb
git_compound-0.2.1 lib/git_compound/task/task_all.rb
git_compound-0.2.0 lib/git_compound/task/task_all.rb
git_compound-0.1.2 lib/git_compound/task/task_all.rb
git_compound-0.1.1 lib/git_compound/task/task_all.rb
git_compound-0.1.0 lib/git_compound/task/task_all.rb
git_compound-0.0.10 lib/git_compound/task/task_all.rb