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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/big_keeper/command/feature&hotfix/start.rb +4 -3
- data/lib/big_keeper/service/git_service.rb +23 -0
- data/lib/big_keeper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 259f22b3c107e156d728a101f2914f362d616030d0db042c713a198f686b059d
|
4
|
+
data.tar.gz: fc6691bcd56404c79b85c5ab2eefd291ded7bc0ddc591d775e9f6fd139fccbd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0301d91098c61cd9fb366bd2995c9db659639bcae0b974d4eb9123cd071daa7ca6b02e4f013a363422d5e289cc328a52a9fb11514cdca0e84b72eff2fb534937
|
7
|
+
data.tar.gz: 970b8471efa9e3d29671e44a50ea0668705bbccbe2211a72a58f9d25af59c94615ca189b7836237c0003bfae60e718f112e403502418730b142a9c73fb16b192
|
data/Gemfile.lock
CHANGED
@@ -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 '#{
|
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
|
|
data/lib/big_keeper/version.rb
CHANGED