module GitProc::AbstractErrorBuilder

Public Instance Methods

append_commands() click to toggle source
# File lib/git-process/abstract_error_builder.rb, line 31
def append_commands
  commands.empty? ? '' : "\n\nCommands:\n\n  #{commands.join("\n  ")}"
end
build_commands() click to toggle source
# File lib/git-process/abstract_error_builder.rb, line 41
def build_commands
  []
end
build_message() click to toggle source
# File lib/git-process/abstract_error_builder.rb, line 24
def build_message
  msg = human_message

  msg << append_commands
end
commands() click to toggle source
# File lib/git-process/abstract_error_builder.rb, line 19
def commands
  @commands ||= build_commands
end
human_message() click to toggle source
# File lib/git-process/abstract_error_builder.rb, line 36
def human_message
  ''
end
shell_escaped_files(files) click to toggle source
# File lib/git-process/abstract_error_builder.rb, line 46
def shell_escaped_files(files)
  shell_escaped_files = files.map { |f| f.shellescape }
  shell_escaped_files.join(' ')
end