metaverse 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/metaverse/base.rb +5 -1
- data/lib/metaverse/git.rb +8 -1
- data/lib/metaverse/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 736ccbbb01a371e101e45fa452923aedead1a0c3
|
|
4
|
+
data.tar.gz: b1a43b838fbda33816235e9e792c0fed376f2208
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3cdab91d903eb85dbc0139408a0c60e3c1c82cf111560b6a674bd49429f7fa257d6179b8b670467ea4ed8554dbfaa2cdc0104a33566b5d5fb746d6f52ef6bd84
|
|
7
|
+
data.tar.gz: 3cb62170a12e3883c33b0a0001ca15336a13df718ef4acb9a633285f4c5f7c0b821440a43c6526abeeef9cb0b0356652df2ab35f05212b80fcc1bbc5e0c5b346
|
data/lib/metaverse/base.rb
CHANGED
|
@@ -38,13 +38,17 @@ module Metaverse
|
|
|
38
38
|
def createFeature name
|
|
39
39
|
branchName = "feature/#{name}"
|
|
40
40
|
@repos.each { |repo|
|
|
41
|
+
puts "\n # #{repo.name}".blue
|
|
41
42
|
repo.branch branchName
|
|
42
43
|
repo.checkout branchName
|
|
43
44
|
} if checkConsistency && checkDirtiness
|
|
44
45
|
end
|
|
45
46
|
|
|
46
47
|
def loadFeature name
|
|
47
|
-
@repos.each { |repo|
|
|
48
|
+
@repos.each { |repo|
|
|
49
|
+
puts "\n # #{repo.name}".blue
|
|
50
|
+
repo.checkout "feature/#{name}"
|
|
51
|
+
} if checkConsistency && checkDirtiness
|
|
48
52
|
end
|
|
49
53
|
|
|
50
54
|
def getBranches
|
data/lib/metaverse/git.rb
CHANGED
|
@@ -27,8 +27,9 @@ module Metaverse
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
def branch branch
|
|
30
|
+
def branch branch
|
|
31
31
|
Dir.chdir(@path) do
|
|
32
|
+
puts `git branch #{branch}`
|
|
32
33
|
end
|
|
33
34
|
end
|
|
34
35
|
|
|
@@ -50,6 +51,12 @@ module Metaverse
|
|
|
50
51
|
end
|
|
51
52
|
end
|
|
52
53
|
|
|
54
|
+
def push remote
|
|
55
|
+
Dir.chdir(@path) do
|
|
56
|
+
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
53
60
|
def fetch remote
|
|
54
61
|
Dir.chdir(@path) do
|
|
55
62
|
`git fetch #{remote || @originRemote}`
|
data/lib/metaverse/version.rb
CHANGED