vagrant-conoha 0.1.3 → 0.1.4

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: e55c55029330657855c5becd515bcfc8ae8e6f86
4
- data.tar.gz: 1be6292d3a3c9849df8e4b4c76db64233e9d3f28
3
+ metadata.gz: 1767c663991ea70fe2d5c9d703c9119463213bf5
4
+ data.tar.gz: 69bceaf3079b5a67efd0d9fcfb5959727b84a0cf
5
5
  SHA512:
6
- metadata.gz: 9c9745af00896f08a0ac76af805aebbb71debb83773270afc3a398818f5bd0616c7c7b3682913e4a91290ea2a3599ae76c41cf9f22f5d79d291fa74a1df110d6
7
- data.tar.gz: 6f753d00c73b33921b9deb19157e58ce6ef8555d630032b20d8254b13a567c9fa8d6a2c9cc3b111ba675efc6db43f61edd23744409ab8bfc34e2f32c6c812b79
6
+ metadata.gz: 8391aaacf1566fb391d750425b1e4ac9d465e1a30884775152994dc093c3243db6d28723956eefbbc86ea5318364d61084f1e052a5e5fbc0e9c4fedc9b9f959d
7
+ data.tar.gz: c53651f7a2cbad1dcf8d5ab8dd2289b3ba37d4877d373e753dd55995384151a70755d5b8cb470b373fccce85b43801a3be73a1e17f3f280441d25b64ba53ade5
@@ -1,7 +1,6 @@
1
1
  require 'log4r'
2
2
  require 'rbconfig'
3
3
  require 'vagrant/util/subprocess'
4
-
5
4
  require 'vagrant-conoha/action/abstract_action'
6
5
 
7
6
  module VagrantPlugins
@@ -57,6 +56,8 @@ module VagrantPlugins
57
56
  config = env[:machine].provider_config
58
57
  rsync_includes = config.rsync_includes.to_a
59
58
 
59
+ confirm_rsync_installed(env)
60
+
60
61
  env[:machine].config.vm.synced_folders.each do |_, data|
61
62
  hostpath = File.expand_path(data[:hostpath], env[:root_path])
62
63
  guestpath = data[:guestpath]
@@ -113,6 +114,24 @@ module VagrantPlugins
113
114
 
114
115
  private
115
116
 
117
+ def confirm_rsync_installed(env)
118
+ # Install rsync if not installed
119
+ r = env[:machine].communicate.execute('which rsync', {error_check: false})
120
+ if r == 0
121
+ return
122
+ end
123
+
124
+ config = env[:machine].provider_config
125
+
126
+ if config.image =~ /debian|ubuntu/
127
+ env[:ui].detail(I18n.t('vagrant_openstack.confirm_rsync_installed'))
128
+ env[:machine].communicate.sudo('apt-get update && apt-get install -y rsync')
129
+ elsif config.image =~ /centos/
130
+ env[:ui].detail(I18n.t('vagrant_openstack.confirm_rsync_installed'))
131
+ env[:machine].communicate.sudo('yum -y install rsync')
132
+ end
133
+ end
134
+
116
135
  def ssh_key_options(ssh_info)
117
136
  # Ensure that `private_key_path` is an Array (for Vagrant < 1.4)
118
137
  Array(ssh_info[:private_key_path]).map { |path| "-i '#{path}' " }.join
@@ -4,7 +4,7 @@ module VagrantPlugins
4
4
  # Stable versions must respect the pattern given
5
5
  # by VagrantPlugins::ConoHa::VERSION_PATTERN
6
6
  #
7
- VERSION = '0.1.3'
7
+ VERSION = '0.1.4'
8
8
 
9
9
  #
10
10
  # Stable version must respect the naming convention 'x.y.z'
data/locales/en.yml CHANGED
@@ -67,6 +67,8 @@ en:
67
67
  Trying authentication...
68
68
  rsync_folder: |-
69
69
  Rsyncing folder: %{hostpath} => %{guestpath}
70
+ confirm_rsync_installed: |-
71
+ Installing rsync...
70
72
  using_floating_ip: |-
71
73
  Using floating IP %{floating_ip}
72
74
  waiting_for_build: |-
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.license = 'MIT'
14
14
 
15
15
  gem.add_dependency 'json', '~> 1.8.3'
16
- gem.add_dependency 'rest-client', '~> 1.6.0'
16
+ gem.add_dependency 'rest-client', '>= 1.6.9'
17
17
  gem.add_dependency 'terminal-table', '1.5.2'
18
18
  gem.add_dependency 'sshkey', '1.7.0'
19
19
  gem.add_dependency 'colorize', '0.7.7'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-conoha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hironobu Saitoh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-05 00:00:00.000000000 Z
11
+ date: 2016-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rest-client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.6.0
33
+ version: 1.6.9
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.6.0
40
+ version: 1.6.9
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: terminal-table
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  version: '0'
299
299
  requirements: []
300
300
  rubyforge_project:
301
- rubygems_version: 2.4.5.1
301
+ rubygems_version: 2.2.2
302
302
  signing_key:
303
303
  specification_version: 4
304
304
  summary: Enables Vagrant to manage VPS in ConoHa.