class Papa::Command::Git::Fetch

Public Class Methods

new(remote) click to toggle source
Calls superclass method Papa::Command::Base::new
# File lib/papa/command/git/fetch.rb, line 7
def initialize(remote)
  @remote = remote
  command = "git fetch #{remote}"
  super(command)
end

Public Instance Methods

failure_message() click to toggle source
Calls superclass method Papa::Command::Base#failure_message
# File lib/papa/command/git/fetch.rb, line 13
def failure_message
  super
  message = "Failed to fetch from #{@remote}. Please check your internet connection and try again."
  Helper::Output.stderr message
  message
end