Class: Certman::Log
- Inherits:
-
Object
- Object
- Certman::Log
- Defined in:
- lib/certman/log.rb
Instance Method Summary collapse
- #error ⇒ Object
-
#initialize(message) ⇒ Log
constructor
A new instance of Log.
- #success ⇒ Object
Constructor Details
#initialize(message) ⇒ Log
Returns a new instance of Log.
3 4 5 6 7 |
# File 'lib/certman/log.rb', line 3 def initialize() @pastel = Pastel.new @s = TTY::Spinner.new("[:spinner] #{} (#{Aws.config[:region]})", output: $stdout) @s.auto_spin end |
Instance Method Details
#error ⇒ Object
13 14 15 |
# File 'lib/certman/log.rb', line 13 def error @s.error(@pastel.red('(error)')) end |
#success ⇒ Object
9 10 11 |
# File 'lib/certman/log.rb', line 9 def success @s.success(@pastel.green('(successful)')) end |