Class: Branchtree::Commands::Edit

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

Instance Method Summary collapse

Methods inherited from Common

#load_situation, #load_tree, #pluralize

Methods included from Branchtree::Context

logger

Instance Method Details

#executeObject



11
12
13
14
15
16
# File 'lib/branchtree/commands/edit.rb', line 11

def execute
  super

  editor = ENV["BRANCHTREE_EDITOR"] || ENV["EDITOR"]
  system "#{editor} #{params[:mapfile]}"
end