Class: PandorasBox
- Inherits:
-
Object
- Object
- PandorasBox
- Defined in:
- lib/pandoras_box/main.rb,
lib/pandoras_box/version.rb
Constant Summary collapse
- VERSION =
'0.0.4'
Instance Method Summary collapse
Instance Method Details
#run(argv) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/pandoras_box/main.rb', line 14 def run(argv) case argv[0] when 'install' Installer.install when 'import' if argv[1] && argv[2] FileManager.modulify(argv[1], argv[2]) else puts 'Wrong # of arguments' end when 'add' if argv[1] FileManager.add_box_bundle(argv[1]) else puts 'Wrong # of arguments' end when 'current' puts FileManager.get_current_box when 'help' puts HELP else puts HELP end end |