Sha256: 787c4ceb3790c0cf7660214459f1eb97c0b287f5c57d01904fc9e174742e1aa4

Contents?: true

Size: 571 Bytes

Versions: 2

Compression:

Stored size: 571 Bytes

Contents

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

module GGSM
  module Finish
    include Submodule

    def finish_flow
      check_submodule

      subs = get_submodule
      subs.each do |sub|
        Dir.chdir sub
        puts "==> 进入#{sub}:".yellow
        system "git add .;git commit;git push origin #{get_current_branch}"
        Dir.chdir '..'
      end

      puts '==> 进入主工程:'.yellow
      system "git add .;git commit;git push origin #{get_current_branch}"

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ggsm-1.3.0 lib/ggsm/flow/finish.rb
ggsm-1.2.0 lib/ggsm/flow/finish.rb