Class: JBundler::Cli
Instance Method Summary collapse
- #console ⇒ Object
- #install ⇒ Object
- #lock_down ⇒ Object
- #show ⇒ Object
-
#tree ⇒ Object
method_option :details, :type => :boolean, :default => false.
- #update ⇒ Object
Instance Method Details
#console ⇒ Object
93 94 95 |
# File 'lib/jbundler/cli.rb', line 93 def console # dummy - never executed !!! end |
#install ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/jbundler/cli.rb', line 79 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 |
#lock_down ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/jbundler/cli.rb', line 111 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
143 144 145 146 |
# File 'lib/jbundler/cli.rb', line 143 def show config.verbose = true Show.new( config ).show_classpath end |
#tree ⇒ Object
method_option :details, :type => :boolean, :default => false
58 59 60 |
# File 'lib/jbundler/cli.rb', line 58 def tree JBundler::Tree.new( config ).show_it end |
#update ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/jbundler/cli.rb', line 129 def update msg = JBundler::LockDown.new( config ).update( [ :debug ] , [ :verbose ] ) config.verbose = ! [ :quiet ] Show.new( config ).show_classpath unless [ :quiet ] puts '' puts 'Your jbundle is updated! Use `jbundle show` to see where the bundled jars are installed.' end puts msg if msg end |