Sha256: 4b75f6b523e0c458f0f46169734b8818f8a85412c3e234bed6f68f8e098aa548

Contents?: true

Size: 677 Bytes

Versions: 4

Compression:

Stored size: 677 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 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

4 entries across 4 versions & 1 rubygems

Version Path
lino-3.2.0.pre.10 lib/lino.rb
lino-3.2.0.pre.9 lib/lino.rb
lino-3.2.0.pre.8 lib/lino.rb
lino-3.2.0.pre.7 lib/lino.rb