Class: CryptReboot::Cli::Exiter

Inherits:
Object
  • Object
show all
Defined in:
lib/crypt_reboot/cli/exiter.rb

Overview

Print a message and return exit status

Direct Known Subclasses

HappyExiter, SadExiter

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject (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

#callObject



9
10
11
12
# File 'lib/crypt_reboot/cli/exiter.rb', line 9

def call
  stream.puts text.strip if text
  status
end