Method: Act::Command#open_file

Defined in:
lib/act/command.rb

#open_file(file) ⇒ void

This method returns an undefined value.



109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/act/command.rb', line 109

def open_file(file)
  line = file.highlight_line || file.from_line
  command = Helper.open_in_editor_command(file.path, line)
  UI.puts command if self.verbose?
  if defined? Bundler
    Bundler.with_clean_env do
      system(command)
    end
  else
    system(command)
  end
end