Class: Rexer::Commands::Edit

Inherits:
Object
  • Object
show all
Defined in:
lib/rexer/commands/edit.rb

Instance Method Summary collapse

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/rexer/commands/edit.rb', line 6

def call
  definition_file = Definition.file

  if editor.to_s.empty?
    puts Paint["Please set your $VISUAL or $EDITOR environment variable.", :red]
    exit 1
  end

  edit_system_editor(definition_file.to_s)
end