Top Level Namespace
Defined Under Namespace
Classes: OauthCli
Instance Method Summary collapse
- #ask_prompt(question) ⇒ Object
- #say_error(error) ⇒ Object
- #say_message(message, color = 'WHITE') ⇒ Object
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) "ERROR: #{error}", 'RED' end |
#say_message(message, color = 'WHITE') ⇒ Object
170 171 172 173 174 |
# File 'lib/oauth_cli.rb', line 170 def (, color = 'WHITE') say "<%= color('# -------------------------------------------------------------------------', #{color}) %>" say "<%= color('# #{}', BOLD, #{color} ) %>" say "<%= color('# -------------------------------------------------------------------------', #{color}) %>" end |