class DTK::Client::Operation::Account::SetCatalogCredentials
Public Class Methods
execute(args = Args.new)
click to toggle source
# File lib/client/operation/account/set_catalog_credentials.rb, line 21 def self.execute(args = Args.new) creds = DTK::Client::Configurator.enter_catalog_credentials() post_body = { :username => creds[:username], :password => creds[:password], :validate => true } response = rest_post("#{RoutePrefix}/set_catalog_credentials", post_body) return response unless response.ok? OsUtil.print("Your catalog credentials have been set!", :yellow) end