git-multirepo 1.0.0.beta8 → 1.0.0.beta9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/info.rb +1 -1
- data/lib/multirepo/commands/update-command.rb +10 -0
- data/lib/multirepo/files/lock-file.rb +4 -0
- 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: ee4d68e2747d9f3aae3477b021efef28e0fcf1b9
|
4
|
+
data.tar.gz: 4ffbdd5876652f3f1022fc2b42355cf5b31ceea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b4567fc61da6330aef456e060db866ddfce8e9f53fea4b1749125f8ff3faec73c808d39f108910ecd70de0bd537da2d8656c7479a20c56e4ae18b87d3ef20a
|
7
|
+
data.tar.gz: 27329de282dc4495004977df3e88440f79844f6c51ba168aa87524f221bbd57e67cb31b664d96d78bbe4eb72e41c109ea242b364f379ad1b43fd622a6a810a05
|
data/lib/info.rb
CHANGED
@@ -5,6 +5,11 @@ module MultiRepo
|
|
5
5
|
self.command = "update"
|
6
6
|
self.summary = "Force-updates the multirepo lock file."
|
7
7
|
|
8
|
+
def initialize(argv)
|
9
|
+
@commit = argv.flag?("commit")
|
10
|
+
super
|
11
|
+
end
|
12
|
+
|
8
13
|
def run
|
9
14
|
super
|
10
15
|
ensure_multirepo_initialized
|
@@ -15,6 +20,11 @@ module MultiRepo
|
|
15
20
|
Console.log_substep("Updated lock file")
|
16
21
|
|
17
22
|
self.install_pre_commit_hook
|
23
|
+
|
24
|
+
if @commit
|
25
|
+
Console.log_substep("Committing updated lock file")
|
26
|
+
LockFile.commit
|
27
|
+
end
|
18
28
|
|
19
29
|
Console.log_step("Done!")
|
20
30
|
rescue MultiRepoException => e
|
@@ -25,6 +25,10 @@ module MultiRepo
|
|
25
25
|
|
26
26
|
Git.run_in_current_dir("add -A #{FILE.to_s}", false)
|
27
27
|
end
|
28
|
+
|
29
|
+
def self.commit
|
30
|
+
Git.run_in_current_dir("commit -m \"Updated multirepo lock file with the latest version of all dependencies\" -o -- #{FILE.to_s}", false)
|
31
|
+
end
|
28
32
|
|
29
33
|
def self.validate_components(line, components)
|
30
34
|
unless components.count == 2
|