Class: ZabbixRubyClient::Cli

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/zabbix-ruby-client/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/zabbix-ruby-client/cli.rb', line 9

def self.source_root
  File.expand_path("../../../templates", __FILE__)
end

Instance Method Details

#init(name = "zabbix-ruby-client") ⇒ Object



26
27
28
# File 'lib/zabbix-ruby-client/cli.rb', line 26

def init(name = "zabbix-ruby-client")
  directory "client", name
end

#showObject



31
32
33
# File 'lib/zabbix-ruby-client/cli.rb', line 31

def show
  collect(options).show
end

#uploadObject



36
37
38
# File 'lib/zabbix-ruby-client/cli.rb', line 36

def upload
  collect(options).upload
end