Class: Zerg::HiveCLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details



35
36
37
# File 'lib/zerg/cli.rb', line 35

def self.banner(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, options[:force])
end

#listObject



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, options[:force])
end

#verifyObject



40
41
42
# File 'lib/zerg/cli.rb', line 40

def verify
    puts Zerg::Hive.verify
end