vagrant-repo-configure 0.0.5 → 0.0.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d97e6a4990122763f925603f4eefd60919deefde
|
4
|
+
data.tar.gz: 6fc9cbc8fcbc24be7214b0ef03bc63e87dbe322c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ce55e0ad019607369bda48597c1651abe39d42720d37a31070ca5a57fe65f004c2749ca66491b7c08c67bb5d362dca4279e55d24b8b90c0d68b1ec2d6eb1100
|
7
|
+
data.tar.gz: d2f2b85acf676cfc7b6048125752c6eae980b1591fdcee320b2e8e9254141fe1c00b861ecedacd240d3a79a25353b037761507607033d7b2ac93c582628501cc
|
@@ -6,16 +6,18 @@ module Vagrant
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def call(env)
|
9
|
-
|
9
|
+
unless vm.config.repos.apt_lines.empty?
|
10
|
+
vm = env[:vm] || env[:machine]
|
10
11
|
|
11
|
-
|
12
|
+
vm.communicate.sudo('mv /etc/apt/sources.list /etc/apt/sources.list.old')
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
vm.config.repos.apt_lines.each do |line|
|
15
|
+
vm.communicate.sudo("echo #{line} >> /etc/apt/sources.list")
|
16
|
+
env[:ui].info "Added #{line} to sources list"
|
17
|
+
end
|
17
18
|
|
18
|
-
|
19
|
+
@app.call(env)
|
20
|
+
end
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|