Class: Dscli::Parameters

Inherits:
Object
  • Object
show all
Includes:
Interactive
Defined in:
lib/dscli/parameters.rb

Instance Method Summary collapse

Instance Method Details

#user_config(options) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/dscli/parameters.rb', line 7

def user_config(options)

  config = options.dup

  username = ask "DataSift Username"
  api_key  = ask "DataSift API Key"

  config = {:auth => {:username => username, :api_key => api_key}}

  return config
end