Exception: Aldagai::EditorNotPresentException

Inherits:
BaseException
  • Object
show all
Defined in:
lib/aldagai/exceptions/editor_not_present_exception.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



6
7
8
9
10
11
12
13
14
# File 'lib/aldagai/exceptions/editor_not_present_exception.rb', line 6

def to_s
  message = <<-MESSAGE
    In order to access interactive mode you neet to set an environment variable with the editor
    you want to use. For example you can run the following command on a terminal
    export EDITOR=vim. This will use vim to enter your variables.
  MESSAGE

  message.gsub(/\s+/, ' ').strip
end