Sha256: 1b5cbe6f78fbc06a9f106ea773dea45e2affc2dfbb70d76ea4769a580124927a

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

require 'specinfra'

module Minarai
  class Runner
    def initialize(actions)
      @actions = actions
    end

    def run
      @actions.each do |action|
        action.backend = backend
        action.call
      end
    end

    private

    def backend
      @backend ||= Specinfra::Backend::Exec.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minarai-0.0.3 lib/minarai/runner.rb
minarai-0.0.2 lib/minarai/runner.rb
minarai-0.0.1 lib/minarai/runner.rb