Sha256: 8bf47e4e1a60136c6bf24ee7f71328e6de818c719d623cfd7b8a6645d9ffb2f2

Contents?: true

Size: 771 Bytes

Versions: 7

Compression:

Stored size: 771 Bytes

Contents

# frozen_string_literal: true

require 'lino/version'
require 'lino/model'
require 'lino/builders'
require 'lino/executors'
require 'lino/errors'

module Lino
  class << self
    attr_writer :configuration

    def builder_for_command(command)
      Lino::Builders::CommandLine.new(command:)
    end

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end

    def reset!
      @configuration = nil
    end
  end

  class Configuration
    attr_accessor :executor

    def initialize
      @executor = Executors::Childprocess.new
    end
  end

  class CommandLineBuilder
    class << self
      def for_command(command)
        Lino::Builders::CommandLine.new(command:)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lino-4.2.0.pre.2 lib/lino.rb
lino-4.2.0.pre.1 lib/lino.rb
lino-4.1.0 lib/lino.rb
lino-4.1.0.pre.2 lib/lino.rb
lino-4.1.0.pre.1 lib/lino.rb
lino-4.0.0 lib/lino.rb
lino-4.0.0.pre.2 lib/lino.rb