Top Level Namespace

Defined Under Namespace

Classes: OauthCli

Instance Method Summary collapse

Instance Method Details

#ask_prompt(question) ⇒ Object



180
181
182
# File 'lib/oauth_cli.rb', line 180

def ask_prompt(question)
  ask " |-- #{question} >> "
end

#say_error(error) ⇒ Object



176
177
178
# File 'lib/oauth_cli.rb', line 176

def say_error(error)
  say_message "ERROR: #{error}", 'RED'
end

#say_message(message, color = 'WHITE') ⇒ Object



170
171
172
173
174
# File 'lib/oauth_cli.rb', line 170

def say_message(message, color = 'WHITE')
  say "<%= color('# -------------------------------------------------------------------------', #{color}) %>"
  say "<%= color('# #{message}', BOLD, #{color} ) %>"
  say "<%= color('# -------------------------------------------------------------------------', #{color}) %>"
end