Sha256: 97653517b696571bd51be05f9ffbeaee00483cc88627623d10690795b076fa0c

Contents?: true

Size: 813 Bytes

Versions: 47

Compression:

Stored size: 813 Bytes

Contents

require 'big_keeper/util/logger'
require 'big_keeper/util/cache_operator'

require 'big_keeper/dependency/dep_service'

module BigKeeper

  def self.push(path, user, comment, type)
    begin
      # Parse Bigkeeper file
      BigkeeperParser.parse("#{path}/Bigkeeper")
      branch_name = GitOperator.new.current_branch(path)

      Logger.error("Not a #{GitflowType.name(type)} branch, exit.") unless branch_name.include? GitflowType.name(type)

      modules = ModuleCacheOperator.new(path).current_path_modules

      modules.each do |module_name|
        ModuleService.new.push(path, user, module_name, branch_name, type, comment)
      end

      Logger.highlight("Push branch '#{branch_name}' for 'Home'...")
      GitService.new.verify_push(path, comment, branch_name, 'Home')
    ensure
    end
  end
end

Version data entries

47 entries across 47 versions & 3 rubygems

Version Path
shkeeper-1.0.0 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.1.2 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.1.0 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.0.9 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.0.8 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.0.7 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.0.6 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.0.5 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.0.4 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.0.3 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-3.0.0 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-2.0.0 lib/big_keeper/command/feature&hotfix/push.rb
kookeeper-1.0.0 lib/big_keeper/command/feature&hotfix/push.rb
bigkeeper-0.9.21 lib/big_keeper/command/feature&hotfix/push.rb
bigkeeper-0.9.20 lib/big_keeper/command/feature&hotfix/push.rb
bigkeeper-0.9.19 lib/big_keeper/command/feature&hotfix/push.rb
bigkeeper-0.9.18 lib/big_keeper/command/feature&hotfix/push.rb
bigkeeper-0.9.17 lib/big_keeper/command/feature&hotfix/push.rb
bigkeeper-0.9.16 lib/big_keeper/command/feature&hotfix/push.rb
bigkeeper-0.9.15 lib/big_keeper/command/feature&hotfix/push.rb