Class: Zerg::HiveCLI
- Inherits:
-
Thor
- Object
- Thor
- Zerg::HiveCLI
- Defined in:
- lib/zerg/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner(command, namespace = nil, subcommand = false) ⇒ Object
35 36 37 |
# File 'lib/zerg/cli.rb', line 35 def self.(command, namespace = nil, subcommand = false) "#{basename} #{@package_name} #{command.usage}" end |
Instance Method Details
#import(file) ⇒ Object
50 51 52 |
# File 'lib/zerg/cli.rb', line 50 def import(file) puts Zerg::Hive.import(file, [:force]) end |
#list ⇒ Object
45 46 47 |
# File 'lib/zerg/cli.rb', line 45 def list puts Zerg::Hive.list end |
#remove(file) ⇒ Object
55 56 57 |
# File 'lib/zerg/cli.rb', line 55 def remove(file) puts Zerg::Hive.remove(file, [:force]) end |
#verify ⇒ Object
40 41 42 |
# File 'lib/zerg/cli.rb', line 40 def verify puts Zerg::Hive.verify end |