Sha256: cded8e8dd1ccf91a66d60a3b133021fe36ebca92c8248fa70a6e731e3bcb0a0f
Contents?: true
Size: 1.03 KB
Versions: 21
Compression:
Stored size: 1.03 KB
Contents
require 'ruby_leiningen/version' require 'ruby_leiningen/commands' module RubyLeiningen class << self attr_writer :configuration def configuration @configuration ||= Configuration.new end def configure yield(configuration) end def reset! @configuration = nil end end module ClassMethods def version Commands::Version.new.execute end def check(opts = {}) Commands::Check.new.execute(opts) end def clean(opts = {}) Commands::Clean.new.execute(opts) end def deps(opts = {}) Commands::Deps.new.execute(opts) end def run(opts = {}) Commands::Run.new.execute(opts) end def uberjar(opts = {}) Commands::Uberjar.new.execute(opts) end def release(opts = {}) Commands::Release.new.execute(opts) 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
21 entries across 21 versions & 1 rubygems