Sha256: c7b78a441515a3ff4245a00caa2e54f77dec8e10167d9354efad2c2f65a0dc7a

Contents?: true

Size: 955 Bytes

Versions: 5

Compression:

Stored size: 955 Bytes

Contents

#!/usr/bin/ruby

require 'big_keeper/util/podfile_operator'
require 'big_keeper/util/gitflow_operator'
require 'big_keeper/util/bigkeeper_parser'
require 'big_keeper/util/logger'
require 'big_keeper/util/pod_operator'

require 'big_keeper/dependency/dep_service'

require 'big_keeper/dependency/dep_type'

require 'big_keeper/service/stash_service'
require 'big_keeper/service/module_service'


module BigKeeper
  def self.delete(path, user, name, type)
    begin
      # Parse Bigkeeper file
      BigkeeperParser.parse("#{path}/Bigkeeper")
      branch_name = "#{GitflowType.name(type)}/#{name}"

      modules = BigkeeperParser.module_names

      modules.each do |module_name|
        module_full_path = BigkeeperParser.module_full_path(path, user, module_name)
        GitService.new.verify_del(module_full_path, branch_name, module_name, type)
      end

      GitService.new.verify_del(path, branch_name, 'Home', type)
    ensure
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bigkeeper-0.7.8 lib/big_keeper/command/feature&hotfix/delete.rb
bigkeeper-0.7.7 lib/big_keeper/command/feature&hotfix/delete.rb
bigkeeper-0.7.6 lib/big_keeper/command/feature&hotfix/delete.rb
bigkeeper-0.7.5 lib/big_keeper/command/feature&hotfix/delete.rb
bigkeeper-0.7.4 lib/big_keeper/command/feature&hotfix/delete.rb