Sha256: 566dea482c3a1792d4a4b3e705a9b295724f6628ba62acd659bf8d68002e5cf2

Contents?: true

Size: 615 Bytes

Versions: 4

Compression:

Stored size: 615 Bytes

Contents

require 'colorize'
require_relative '../util/submodule'

module GGSM
  module Finish
    include Submodule

    def finish_flow
      check_submodule

      foreach_module {
        process_finish
      }

      puts '==> 进入主工程:'.yellow
      process_finish

      puts 'Modules执行:git add & commit & push'.blue
    end

    def process_finish
      system 'git add .'

      branch = get_current_branch
      if branch.include?('rebas')
        system 'git rebase --continue'
      else
        system 'git commit'
      end

      system "git push origin #{get_current_branch}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ggsm-1.6.2 lib/ggsm/command/finish.rb
ggsm-1.6.1 lib/ggsm/command/finish.rb
ggsm-1.6.0 lib/ggsm/command/finish.rb
ggsm-1.5.1 lib/ggsm/flow/finish.rb