Sha256: 588c83150b24ebc1b3d8e7359aca32f4d707b0f5b185adf8dcb1b8c770006a72

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

require 'ruby_leiningen/version'
require 'ruby_leiningen/commands'

module RubyLeiningen
  class << self
    attr_accessor :configuration

    def configure
      @configuration ||= Configuration.new
      yield(@configuration)
    end

    def reset!
      @configuration = nil
    end
  end

  module ClassMethods
    def version
      Commands::Version.new.execute
    end
  end
  extend ClassMethods

  def self.included(other)
    other.extend(ClassMethods)
  end

  class Configuration
    attr_accessor :binary

    def initialize
      @binary = 'lein'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_leiningen-0.1.0 lib/ruby_leiningen.rb
ruby_leiningen-0.0.2 lib/ruby_leiningen.rb
ruby_leiningen-0.0.1 lib/ruby_leiningen.rb