Sha256: 45af059d4785ab2dc2df813419fbc7bf46e200f91f5f592cf8a99c4e1ab38c52

Contents?: true

Size: 379 Bytes

Versions: 7

Compression:

Stored size: 379 Bytes

Contents

module GitCompound
  module Task
    # Task for each component defined in manifest
    #
    class TaskEach < Task
      def initialize(name, manifest, &block)
        super
        @components = manifest.components
      end

      def execute
        @components.each_value do |component|
          execute_on(component.path, component)
        end
      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_each.rb
git_compound-0.2.1 lib/git_compound/task/task_each.rb
git_compound-0.2.0 lib/git_compound/task/task_each.rb
git_compound-0.1.2 lib/git_compound/task/task_each.rb
git_compound-0.1.1 lib/git_compound/task/task_each.rb
git_compound-0.1.0 lib/git_compound/task/task_each.rb
git_compound-0.0.10 lib/git_compound/task/task_each.rb