Class: Unitsdb::Cli

Inherits:
Unitsdb::Commands::Thor
  • Object
show all
Defined in:
lib/unitsdb/cli.rb

Instance Method Summary collapse

Instance Method Details

#check_siObject



62
63
64
# File 'lib/unitsdb/cli.rb', line 62

def check_si
  run_command(Commands::CheckSiCommand, options)
end

#get(id) ⇒ Object



43
44
45
# File 'lib/unitsdb/cli.rb', line 43

def get(id)
  run_command(Commands::Get, options, id, method: :get)
end

#releaseObject



75
76
77
# File 'lib/unitsdb/cli.rb', line 75

def release
  run_command(Commands::Release, options)
end

#search(query) ⇒ Object



32
33
34
# File 'lib/unitsdb/cli.rb', line 32

def search(query)
  run_command(Commands::Search, options, query, method: :run)
end