Class: Coredb::Application::Devopstools::Commands

Inherits:
Thor
  • Object
show all
Defined in:
lib/coredb/application/devopstools/cli.rb

Instance Method Summary collapse

Instance Method Details

#listObject



60
61
62
63
64
65
66
67
# File 'lib/coredb/application/devopstools/cli.rb', line 60

def list()
  if ENV["DEVOPS_REGISTER"] == nil
    puts "Please set the endpoint (DEVOPS_REGISTER) where the variables are configured"
    return false
  end
  Helper.list_query(ENV["DEVOPS_REGISTER"])
  return true
end

#setup(environment) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/coredb/application/devopstools/cli.rb', line 42

def setup(environment)
  if ENV["DEVOPS_REGISTER"] == nil
    puts "Please set the endpoint (DEVOPS_REGISTER) where the variables are configured"
    return false
  end
  Helper.setup_query(ENV["DEVOPS_REGISTER"], environment)
  return true
end