Class: LockJar::CLI
- Inherits:
-
Thor
- Object
- Thor
- LockJar::CLI
- Extended by:
- ClassMethods
- Defined in:
- lib/lock_jar/cli.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Methods included from ClassMethods
generate_jarfile_option, generate_lockfile_option, generate_scopes_option, verbose_option
Instance Method Details
#install ⇒ Object
59 60 61 62 63 |
# File 'lib/lock_jar/cli.rb', line 59 def install handle_verbose([:verbose]) puts "Installing Jars from #{[:lockfile]} for #{[:scopes].inspect}" LockJar.install([:lockfile], [:scopes]) end |
#list ⇒ Object
69 70 71 72 73 |
# File 'lib/lock_jar/cli.rb', line 69 def list handle_verbose([:verbose]) puts "Listing Jars from #{[:lockfile]} for #{[:scopes].inspect}" puts LockJar.list([:lockfile], [:scopes]).inspect end |