Module: DatabasedotcomConsole

Defined in:
lib/databasedotcom_console.rb,
lib/databasedotcom_console/version.rb

Defined Under Namespace

Classes: ScriptRunner

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

Class Method Details

.new_client(host, username, password) ⇒ Object

Create a new client for use with multiple orgs



6
7
8
9
10
11
12
13
14
# File 'lib/databasedotcom_console.rb', line 6

def self.new_client(host, username, password)
  client = Databasedotcom::Client.new(
            :client_id => '3MVG9QDx8IX8nP5RUXIFbi3L4rSVruiBU4O_ozvkJiU0aGZDBxfsF6XDhngJf6Ha2fDNniyDxpt0Gb9Pp.2Tk',
            :client_secret => '7712607496533706277',
           :host => host
          )
  client.authenticate(:username => username, :password => password)
  client
end