Sha256: df94a9894d12e0d12243ddaa5fc86edfec5d7c48a7dd0543b868c2587acaa8b9
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
module GitFonky class Command attr_reader :repo_dir, :reporter def initialize(repo_dir:, reporter:) @repo_dir = repo_dir @reporter = reporter end def current_branch `git branch --show-current`.strip end def fetch_upstream reporter.announce("fetching") `git fetch upstream #{repo_dir.branch} 2>&1` end def pull_upstream reporter.announce("pulling") `git pull upstream #{repo_dir.branch} 2>&1` end def push_to_origin reporter.announce("pushing", "to", "origin") `git push origin #{repo_dir.branch} 2>&1` end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git_fonky-0.5.0 | lib/git_fonky/command.rb |
git_fonky-0.4.0 | lib/git_fonky/command.rb |