Class: Mycmd::SettingCommands

Inherits:
Thor
  • Object
show all
Defined in:
lib/mycmd/clis/setting_commands.rb

Instance Method Summary collapse

Instance Method Details

#search(keyword) ⇒ Object



8
9
10
11
12
# File 'lib/mycmd/clis/setting_commands.rb', line 8

def search(keyword)
  client = Configuration.connect
  printer = Printer.new(client.query("SHOW GLOBAL VARIABLES LIKE \"%#{keyword}%\""))
  printer.print
end