Method: BooticCli::Session#config

Defined in:
lib/bootic_cli/session.rb

#configObject



62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/bootic_cli/session.rb', line 62

def config
  @config ||= store.transaction do
    h = {
      client_id: store['client_id'],
      client_secret: store['client_secret'],
      access_token: store['access_token']
    }
    h[:auth_host] = store['auth_host'] if store['auth_host']
    h[:api_root] = store['api_root'] if store['api_root']
    h
  end
end