Sha256: a557ab15c163a36320d53d2884df93ce8e0db4aba69b2540b14de176621b6a08

Contents?: true

Size: 495 Bytes

Versions: 12

Compression:

Stored size: 495 Bytes

Contents

require 'papa/command/base'

module Papa
  module Command
    module Git
      class Fetch < Command::Base
        def initialize(remote)
          @remote = remote
          command = "git fetch #{remote}"
          super(command)
        end

        def failure_message
          super
          message = "Failed to fetch from #{@remote}. Please check your internet connection and try again."
          Helper::Output.stderr message
          message
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
papa-1.2.0 lib/papa/command/git/fetch.rb
papa-1.1.0 lib/papa/command/git/fetch.rb
papa-1.0.0 lib/papa/command/git/fetch.rb
papa-0.7.2 lib/papa/command/git/fetch.rb
papa-0.7.1 lib/papa/command/git/fetch.rb
papa-0.7.0 lib/papa/command/git/fetch.rb
papa-0.6.2 lib/papa/command/git/fetch.rb
papa-0.6.1 lib/papa/command/git/fetch.rb
papa-0.6.0 lib/papa/command/git/fetch.rb
papa-0.5.0 lib/papa/command/git/fetch.rb
papa-0.4.1 lib/papa/command/git/fetch.rb
papa-0.4.0 lib/papa/command/git/fetch.rb