lib/jbundler/cli.rb in jbundler-0.5.4 vs lib/jbundler/cli.rb in jbundler-0.5.5

- old
+ new

@@ -20,10 +20,11 @@ # require 'thor' require 'jbundler/config' require 'jbundler/executable' require 'jbundler/tree' +require 'jbundler/lock_down' module JBundler class Cli < Thor no_tasks do def config @config ||= JBundler::Config.new @@ -56,10 +57,18 @@ #method_option :details, :type => :boolean, :default => false def tree JBundler::Tree.new( config ).show_it end + desc 'lock_down', 'using a different library to create the Jarfile.lock - experimental' + method_option :vendor, :type => :boolean, :default => false, :desc => 'vendor jars in given vendor directory.' + method_option :debug, :type => :boolean, :default => false, :desc => 'enable maven output' + def lock_down + JBundler::LockDown.new( config ).lock_down( options[ :vendor ], + options[ :debug ] ) + end + desc 'executable', 'create an executable jar with a given bootstrap.rb file\nLIMITATION: only for jruby 1.6.x and newer' method_option :bootstrap, :type => :string, :aliases => '-b', :required => true, :desc => 'file which will be executed when the jar gets executed' method_option :compile, :type => :boolean, :aliases => '-c', :default => false, :desc => 'compile the ruby files from the lib directory' method_option :verbose, :type => :boolean, :aliases => '-v', :default => false, :desc => 'more output' method_option :groups, :type => :array, :aliases => '-g', :desc => 'bundler groups to use for determine the gems to include in the jar file' @@ -74,9 +83,20 @@ end desc 'install', "first `bundle install` is called and then the jar dependencies will be installed. for more details see `bundle help install`, jbundler will ignore all options. the install command is also the default when no command is given." method_option :deployment, :type => :boolean, :default => false, :desc => "copy the jars into the vendor/jars directory (or as configured). these vendored jars have preference before the classpath jars !" method_option :no_deployment, :type => :boolean, :default => false, :desc => 'clears the vendored jars' + method_option :path, :type => :string + method_option :without, :type => :array + method_option :system, :type => :boolean + method_option :local, :type => :boolean + method_option :binstubs, :type => :string + method_option :trust_policy, :type => :string + method_option :gemfile, :type => :string + method_option :jobs, :type => :string + method_option :retry, :type => :string + method_option :no_cache, :type => :boolean + method_option :quiet, :type => :boolean def install require 'jbundler' if options[ :no_deployment ] vendor = JBundler::Vendor.new( config.vendor_dir ) vendor.clear