class Upstream::PathChecker

Attributes

path[R]

Public Class Methods

has_upstream?(path) click to toggle source
# File lib/upstream.rb, line 50
def self.has_upstream?(path)
  new(path).check
end
new(path) click to toggle source
# File lib/upstream.rb, line 46
def initialize(path)
  @path = path
end

Public Instance Methods

check() click to toggle source
# File lib/upstream.rb, line 54
def check
  `cd #{path} && git remote -v`.match(/upstream/) ? true : false
end