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: ef76233ddd58b2e4e4707ad3e6bf6dd396cb6b2a
4
- data.tar.gz: 86cc8261315af0ea4342e43b4c673e54461f2c4c
3
+ metadata.gz: d97e6a4990122763f925603f4eefd60919deefde
4
+ data.tar.gz: 6fc9cbc8fcbc24be7214b0ef03bc63e87dbe322c
5
5
  SHA512:
6
- metadata.gz: db072971ba86b162de3512c7b4818eae33e32e3f6a1ae5189f03965bc340fcfc856b5881beee7d4421f94753f92a2c3b9ac46e4d492e22f28260021c075b2c12
7
- data.tar.gz: 744a9a8a0df17c71fb41f6b544ba259a2d5bb6df133e7cfbf3dc6236cb3996453cec3da34858aca7c69f9db93fb3a3d9e0cba57b02f6d485e15e7316505fab55
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
- vm = env[:vm] || env[:machine]
9
+ unless vm.config.repos.apt_lines.empty?
10
+ vm = env[:vm] || env[:machine]
10
11
 
11
- vm.communicate.sudo('mv /etc/apt/sources.list /etc/apt/sources.list.old')
12
+ vm.communicate.sudo('mv /etc/apt/sources.list /etc/apt/sources.list.old')
12
13
 
13
- vm.config.repos.apt_lines.each do |line|
14
- vm.communicate.sudo("echo #{line} >> /etc/apt/sources.list")
15
- env[:ui].info "Added #{line} to sources list"
16
- end
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
- @app.call(env)
19
+ @app.call(env)
20
+ end
19
21
  end
20
22
  end
21
23
  end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module RepoConfigure
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-repo-configure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syntactic Vexation