Sha256: a1b9986901053c8f86d52e59b902958074f13141017007aabc9c19f3d6ff25c4

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 Bytes

Contents

require_relative 'entangler/version'
require_relative 'entangler/errors'
require_relative 'entangler/logger'
require_relative 'entangler/entangled_file'

module Entangler
  class << self
    attr_accessor :executor

    def run(base_dir, opts = {})
      opts = { mode: 'master', remote_mode: true }.merge(opts)

      require 'entangler/executor/base'
      if opts[:mode] == 'master'
        require 'entangler/executor/master'
        self.executor = Entangler::Executor::Master.new(base_dir, opts)
      elsif opts[:mode] == 'slave'
        require 'entangler/executor/slave'
        self.executor = Entangler::Executor::Slave.new(base_dir, opts)
      end

      executor.run
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
entangler-1.1.1 lib/entangler.rb
entangler-1.1.0 lib/entangler.rb