kookeeper 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 392f6b968d0b0342ab566d1a46c798b36111dc20d225965be367610e29d7ced2
4
- data.tar.gz: 6793a55d9248c6ed2d6f59c8c72bbd4351001b3971f5b3968bf401b86c18d44b
3
+ metadata.gz: 259f22b3c107e156d728a101f2914f362d616030d0db042c713a198f686b059d
4
+ data.tar.gz: fc6691bcd56404c79b85c5ab2eefd291ded7bc0ddc591d775e9f6fd139fccbd3
5
5
  SHA512:
6
- metadata.gz: 2b83e38623f0294e25f509207070bfb108ef9304918f216cb7d067f15b164952a7095b241f77641c4e72cdf5ae395ae6cf75503d9510260834371379f3d03036
7
- data.tar.gz: 2873e13e8ecc546b4dcf068b00cf87d60d476d697c2593ca73f00894fc52c56465f7b2e17e7ce651e5b6e3309e9afcbf49b5eb237926e12af3028d54b0c2352f
6
+ metadata.gz: 0301d91098c61cd9fb366bd2995c9db659639bcae0b974d4eb9123cd071daa7ca6b02e4f013a363422d5e289cc328a52a9fb11514cdca0e84b72eff2fb534937
7
+ data.tar.gz: 970b8471efa9e3d29671e44a50ea0668705bbccbe2211a72a58f9d25af59c94615ca189b7836237c0003bfae60e718f112e403502418730b142a9c73fb16b192
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kookeeper (3.0.3)
4
+ kookeeper (3.0.4)
5
5
  big_resources
6
6
  big_stash (~> 0.1)
7
7
  cocoapods
@@ -26,6 +26,7 @@ module BigKeeper
26
26
  full_name = "#{version}_#{user}_#{name}"
27
27
  branch_name = "#{GitflowType.name(type)}/#{full_name}"
28
28
 
29
+ home_branch_name = "release/#{version}"
29
30
  GitService.new.verify_home_branch(path, branch_name, OperateType::START)
30
31
 
31
32
  stash_modules = ModuleCacheOperator.new(path).all_path_modules
@@ -36,10 +37,10 @@ module BigKeeper
36
37
  # Verify input modules
37
38
  modules = BigkeeperParser.verify_modules(modules)
38
39
 
39
- Logger.highlight("Add branch '#{branch_name}' for 'Home'...")
40
+ Logger.highlight("Add branch release'#{version}' for 'Home'...")
40
41
  # Start home feature
41
- GitService.new.start(path, full_name, type)
42
-
42
+ # GitService.new.start(path, full_name, type)
43
+ GitService.new.startHome(path, version, GitflowType::RELEASE)
43
44
  # Clean module cache
44
45
  ModuleCacheOperator.new(path).clean_modules
45
46
 
@@ -7,6 +7,29 @@ require 'big_keeper/util/logger'
7
7
  module BigKeeper
8
8
  # Operator for got
9
9
  class GitService
10
+
11
+ def startHome(path, name, type)
12
+ git = GitOperator.new
13
+ branch_name = "#{GitflowType.name(type)}/#{name}"
14
+ if !git.has_remote_branch(path, branch_name) && !git.has_local_branch(path, branch_name)
15
+
16
+ verify_special_branch(path, 'master')
17
+ #verify_special_branch(path, 'develop')
18
+
19
+ GitflowOperator.new.verify_git_flow(path)
20
+
21
+ GitflowOperator.new.start(path, name, type)
22
+ git.push_to_remote(path, branch_name)
23
+ else
24
+ verify_checkout(path, branch_name)
25
+
26
+ if !git.has_remote_branch(path, branch_name)
27
+ git.push_to_remote(path, branch_name)
28
+ end
29
+ end
30
+ end
31
+
32
+
10
33
  def start(path, name, type)
11
34
  git = GitOperator.new
12
35
 
@@ -1,3 +1,3 @@
1
1
  module BigKeeper
2
- VERSION = "3.0.3"
2
+ VERSION = "3.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kookeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmoaay