Class: JBundler::Cli
- Inherits:
-
Thor
- Object
- Thor
- JBundler::Cli
- Defined in:
- lib/jbundler/cli.rb
Instance Method Summary collapse
- #console ⇒ Object
- #executable ⇒ Object
- #install ⇒ Object
- #jruby_complete ⇒ Object
- #lock_down ⇒ Object
- #show ⇒ Object
-
#tree ⇒ Object
method_option :details, :type => :boolean, :default => false.
- #update ⇒ Object
Instance Method Details
#console ⇒ Object
111 112 113 |
# File 'lib/jbundler/cli.rb', line 111 def console # dummy - never executed !!! end |
#executable ⇒ Object
105 106 107 108 |
# File 'lib/jbundler/cli.rb', line 105 def executable ex = JBundler::Executable.new( [ 'bootstrap' ], config, [ 'compile' ], [ :verbose ], *( [ 'groups' ] || [:default] ) ) ex.packit end |
#install ⇒ Object
91 92 93 94 95 96 97 98 |
# File 'lib/jbundler/cli.rb', line 91 def install JBundler::LockDown.new( config ).lock_down( [ :vendor ], [ :debug ] , [ :verbose ] ) config.verbose = ! [ :quiet ] Show.new( config ).show_classpath puts 'jbundle complete' unless [ :quiet ] end |
#jruby_complete ⇒ Object
59 60 61 62 63 64 65 66 |
# File 'lib/jbundler/cli.rb', line 59 def jruby_complete jc = JBundler::JRubyComplete.new( config, ) if [ :show ] jc.show_versions else jc.packit end end |
#lock_down ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/jbundler/cli.rb', line 129 def lock_down require 'jbundler' unvendor if [ :no_deployment ] vendor if [ :deployment ] config.verbose = ! [ :quiet ] Show.new( config ).show_classpath say_bundle_complete unless [ :quiet ] end |
#show ⇒ Object
159 160 161 162 |
# File 'lib/jbundler/cli.rb', line 159 def show config.verbose = true Show.new( config ).show_classpath end |
#tree ⇒ Object
method_option :details, :type => :boolean, :default => false
70 71 72 |
# File 'lib/jbundler/cli.rb', line 70 def tree JBundler::Tree.new( config ).show_it end |
#update ⇒ Object
146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/jbundler/cli.rb', line 146 def update return unless ARGV.size == 1 JBundler::LockDown.new( config ).update( [ :debug ] , [ :verbose ] ) config.verbose = ! [ :quiet ] Show.new( config ).show_classpath puts '' puts 'Your jbundle is updated! Use `jbundle show` to see where the bundled jars are installed.' end |