Class: JBundler::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/jbundler/cli.rb

Instance Method Summary collapse

Instance Method Details

#consoleObject



48
49
50
# File 'lib/jbundler/cli.rb', line 48

def console
  # dummy - never executed !!!
end

#installObject



53
54
55
56
57
# File 'lib/jbundler/cli.rb', line 53

def install
  require 'jbundler'
  do_show
  puts 'Your jbundle is complete! Use `jbundle show` to see where the bundled jars are installed.'
end

#showObject



75
76
77
78
79
# File 'lib/jbundler/cli.rb', line 75

def show
  if ARGV.size == 1
    do_show
 end
end

#updateObject



60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/jbundler/cli.rb', line 60

def update
  if ARGV.size == 1
    require 'java'
    require 'jbundler/config'
    config = JBundler::Config.new
    FileUtils.rm_f(config.jarfile_lock)
    
    require 'jbundler'
    do_show
    puts ''
    puts 'Your jbundle is updated! Use `jbundle show` to see where the bundled jars are installed.'
  end
end