Class: JBundler::Cli
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
118 119 120 |
# File 'lib/jbundler/cli.rb', line 118 def console # dummy - never executed !!! end |
#executable ⇒ Object
112 113 114 115 |
# File 'lib/jbundler/cli.rb', line 112 def executable ex = JBundler::Executable.new( [ 'bootstrap' ], config, [ 'compile' ], [ :verbose ], *( [ 'groups' ] || [:default] ) ) ex.packit end |
#install ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/jbundler/cli.rb', line 94 def install msg = JBundler::LockDown.new( config ).lock_down( [ :vendor ], [ :debug ] , [ :verbose ] ) config.verbose = ! [ :quiet ] Show.new( config ).show_classpath unless [ :quiet ] puts 'jbundle complete !' puts end puts msg if msg end |
#jruby_complete ⇒ Object
62 63 64 65 66 67 68 69 |
# File 'lib/jbundler/cli.rb', line 62 def jruby_complete jc = JBundler::JRubyComplete.new( config, ) if [ :show ] jc.show_versions else jc.packit end end |
#lock_down ⇒ Object
136 137 138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/jbundler/cli.rb', line 136 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
166 167 168 169 |
# File 'lib/jbundler/cli.rb', line 166 def show config.verbose = true Show.new( config ).show_classpath end |
#tree ⇒ Object
method_option :details, :type => :boolean, :default => false
73 74 75 |
# File 'lib/jbundler/cli.rb', line 73 def tree JBundler::Tree.new( config ).show_it end |
#update ⇒ Object
153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/jbundler/cli.rb', line 153 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 |