Exception: Zedkit::CLI::MissingCredentials

Inherits:
CommandLineError show all
Defined in:
lib/zedkit/cli/exceptions.rb

Instance Attribute Summary

Attributes inherited from CommandLineError

#locale, #message

Instance Method Summary collapse

Methods inherited from CommandLineError

#initialize

Constructor Details

This class inherits a constructor from Zedkit::CLI::CommandLineError

Instance Method Details

#to_sObject



35
36
37
38
39
40
41
42
# File 'lib/zedkit/cli/exceptions.rb', line 35

def to_s
  rs  = "\n" << Zedkit::CLI.ee(locale, :general, :error) << "\n"
  rs << "  #{Zedkit::CLI.ee(locale, :general, :message)} => #{message}.\n" unless message.nil?
  rs << "  You need to setup your Zedkit login or user API key in ~/.zedkit to the use the Zedkit CLI.\n"
  rs << "  Example:\n"
  rs << "    [email protected]\n"
  rs << "    StRongPassWoRd\n\n"
end