Class: CryptReboot::Cli::Exiter
- Inherits:
-
Object
- Object
- CryptReboot::Cli::Exiter
- Defined in:
- lib/crypt_reboot/cli/exiter.rb
Overview
Print a message and return exit status
Direct Known Subclasses
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/crypt_reboot/cli/exiter.rb', line 7 def text @text end |
Instance Method Details
#call ⇒ Object
9 10 11 12 |
# File 'lib/crypt_reboot/cli/exiter.rb', line 9 def call stream.puts text.strip if text status end |