Sha256: 5e70a7a7e3bd56a248b0e4048aed9e39a1c7fd57e60bbd2658801823765ea650

Contents?: true

Size: 844 Bytes

Versions: 2

Compression:

Stored size: 844 Bytes

Contents

module GitCompound
  module Command
    module Procedure
      # BuildManifest procedure class
      #
      class BuildManifest < Procedure
        include Element::Manifest
        include Element::Lock
        include Element::Subprocedure

        add_subprocedure :check_dependencies, Check
        add_subprocedure :tasks_runner,       Tasks

        step :build_info do
          Logger.info 'Building components ...'
        end

        step :check do
          subprocedure(:check_dependencies)
        end

        step :build_manifest do
          @manifest.process(Worker::ComponentBuilder.new(@lock))
        end

        step :execute_tasks do
          subprocedure(:tasks_runner)
        end

        step :lock_manifest do
          @lock.lock_manifest(@manifest)
          @lock.write
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git_compound-0.2.2 lib/git_compound/command/procedure/build_manifest.rb
git_compound-0.2.1 lib/git_compound/command/procedure/build_manifest.rb