Sha256: e0b2f7516f621c18553388d3fc28128dda11cdeac207d040f719853d8ebd8e3c
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
require "fileutils" module Borg class Git attr_accessor :status def current_branch cmd_output = `git symbolic-ref HEAD` branch_name = cmd_output.strip.split("/")[-1] branch_name end def update(worker) FileUtils.cd(Rails.root) do #update_command = "git reset --hard HEAD && git fetch && git rebase origin/#{current_branch} && git submodule init && git submodule update && bundle install --local" update_command = "bundle install --local" puts "Update command is #{update_command}" EM.popen(update_command,TestRunner) do |process| process.worker = worker process.runner_type = 'git' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
borg-0.0.6 | lib/borg/borg_git.rb |