Sha256: a3415bf5405fa3e64d09f74dbf7f714a234fb1c4da09b2578b1281770bea6af9
Contents?: true
Size: 975 Bytes
Versions: 6
Compression:
Stored size: 975 Bytes
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 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
6 entries across 6 versions & 1 rubygems