vagrant-proxyconf 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzI4MTE4NzRhOTYzYWY1MDVkZThkM2Y5MTNjZmQ0ODY2ZTM0YmZjMg==
4
+ MGJkNWQ0YjdiMjA4ZDQ0YmQ3MzM3ZDFjODM3MmEwODk2YmI2M2ZhMg==
5
5
  data.tar.gz: !binary |-
6
- Mzg5Y2U5MWU3MmM2ZDQyOTQ3NGE1ODVmZGFhNmRlNTZkMGQxZWUxNg==
6
+ MGE0Y2VkOWUzOWNjZDg0NDQxYTU0MmZmMDdhY2Y2ZTZkZmRiMzY3OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Mzk2YzM2ZjlhYTkwMmE2NTg4ZGI5YTIzMjU4OTE3YTM3YjFkOWU3MWUyOTRi
10
- NWY1YjIxZjY2ZmNiOTQwMzAxNjRiNjVhOTM2ODkxYWMyMjM1YWY0YWFhNTVm
11
- OWEwNDgyMmZkOTg5OTE3N2NlMWI0Mzc2YmQ2NGJiN2ZkMmY4N2M=
9
+ YzA5OWYxNTZmYWZmYzdiNzM0Y2YwMDVmZDMyYzM3YTc3YWY0MTUyMmZkNDYx
10
+ ZTc3YTJlNjc1YTE1Njk2ZTk1ZmEzNGU1Mjc3ZTA1MDAxNGQyZGVkNDNkZDU1
11
+ Mjc5YzQ4NzY2ZjAwZmQxMjYzZjVkYTgxZGUwNWU0YmMyMzE3N2U=
12
12
  data.tar.gz: !binary |-
13
- NDE4YTdlNjNlOTY1NDQ5ZTMxYzIzOTFiMDM2NWNkYTdlMjAyOWNlMzI1MDM1
14
- MGFiNDIwOTRiMTk2YjFlZWUzNDM4ODQ3OWI5MDU2ZGNlODYzZWJjMzc4NTA3
15
- MmFiMmVmNWM2YjA0MWYxNzFiNDczMzkxYjJiODM2ZDFlNWUyYWU=
13
+ YjRkN2YyYzI3ZDM0NDg5NTQ3ZDBkMTZkOTQzYWU2MDY3NTA4YjQzODYzMWEz
14
+ YTA2ZjEzZGZiNDk3MmJhNDA0OWE3MDAxNzc5YTc5YTVkN2VlYWIyM2U5ZjEx
15
+ OTAwN2IwYjMyN2U1YTM1YjQ2OTI0YjQyNmU3ZTU2ZjE4MjViNzM=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.5.3 / 2013-09-30
2
+
3
+ - Compatibility with vagrant-aws v0.4.0 ([GH-28][])
4
+ * Next vagrant-aws release [will remove](https://github.com/mitchellh/vagrant-aws/commit/dd17f23) its custom TimedProvision action class
5
+ - Ensure that generated configuration files are not deleted before uploading ([GH-29][])
6
+
1
7
  # 0.5.2 / 2013-09-27
2
8
 
3
9
  - Fix sudo configuration on old Ubuntu 10.04 "lucid" guests ([GH-26][])
@@ -69,3 +75,5 @@
69
75
  [GH-25]: https://github.com/tmatilai/vagrant-proxyconf/issues/25 "Issue 25"
70
76
  [GH-26]: https://github.com/tmatilai/vagrant-proxyconf/issues/26 "Issue 26"
71
77
  [GH-27]: https://github.com/tmatilai/vagrant-proxyconf/issues/27 "Issue 27"
78
+ [GH-28]: https://github.com/tmatilai/vagrant-proxyconf/issues/28 "Issue 28"
79
+ [GH-29]: https://github.com/tmatilai/vagrant-proxyconf/issues/29 "Issue 29"
@@ -72,10 +72,11 @@ module VagrantPlugins
72
72
  def write_config(machine, config, opts = {})
73
73
  tmp = "/tmp/vagrant-proxyconf"
74
74
  path = opts[:path] || config_path(machine)
75
+ local_tmp = tempfile(config)
75
76
 
76
77
  logger.debug "Configuration (#{path}):\n#{config}"
77
78
  machine.communicate.tap do |comm|
78
- comm.upload(tempfile(config).path, tmp)
79
+ comm.upload(local_tmp.path, tmp)
79
80
  comm.sudo("chmod #{opts[:mode] || '0644'} #{tmp}")
80
81
  comm.sudo("chown #{opts[:owner] || 'root:root'} #{tmp}")
81
82
  comm.sudo("mkdir -p #{File.dirname(path)}")
@@ -27,24 +27,6 @@ module VagrantPlugins
27
27
  I18n.reload!
28
28
  end
29
29
 
30
- def self.register_hooks(hook, provision_action)
31
- require_relative 'action/configure_apt_proxy'
32
- require_relative 'action/configure_chef_proxy'
33
- require_relative 'action/configure_env_proxy'
34
-
35
- hook.after provision_action, Action::ConfigureAptProxy
36
- hook.after provision_action, Action::ConfigureChefProxy
37
- hook.after provision_action, Action::ConfigureEnvProxy
38
- end
39
-
40
- def self.aws_plugin_installed?
41
- VagrantPlugins.const_defined?('AWS')
42
- end
43
-
44
- def self.omnibus_plugin_installed?
45
- VagrantPlugins.const_defined?('Omnibus')
46
- end
47
-
48
30
  setup_i18n
49
31
  check_vagrant_version!
50
32
 
@@ -76,16 +58,30 @@ module VagrantPlugins
76
58
  end
77
59
 
78
60
  action_hook 'proxyconf_configure' do |hook|
79
- if omnibus_plugin_installed?
61
+ if defined? VagrantPlugins::Omnibus::Action::InstallChef
80
62
  # configure the proxies before vagrant-omnibus
81
63
  register_hooks(hook, VagrantPlugins::Omnibus::Action::InstallChef)
82
64
  else
83
65
  register_hooks(hook, Vagrant::Action::Builtin::Provision)
84
66
 
85
- # vagrant-aws uses a non-standard provision action
86
- register_hooks(hook, VagrantPlugins::AWS::Action::TimedProvision) if aws_plugin_installed?
67
+ # vagrant-aws < 0.4.0 uses a non-standard provision action
68
+ if defined? VagrantPlugins::AWS::Action::TimedProvision
69
+ register_hooks(hook, VagrantPlugins::AWS::Action::TimedProvision)
70
+ end
87
71
  end
88
72
  end
73
+
74
+ private
75
+
76
+ def self.register_hooks(hook, provision_action)
77
+ require_relative 'action/configure_apt_proxy'
78
+ require_relative 'action/configure_chef_proxy'
79
+ require_relative 'action/configure_env_proxy'
80
+
81
+ hook.after provision_action, Action::ConfigureAptProxy
82
+ hook.after provision_action, Action::ConfigureChefProxy
83
+ hook.after provision_action, Action::ConfigureEnvProxy
84
+ end
89
85
  end
90
86
  end
91
87
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module ProxyConf
3
- VERSION = '0.5.2'
3
+ VERSION = '0.5.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-proxyconf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Teemu Matilainen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-27 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Vagrant plugin that configures the virtual machine to use proxy servers
14
14
  email: