vagrant-conoha 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vagrant-conoha/action/sync_folders.rb +20 -1
- data/lib/vagrant-conoha/version.rb +1 -1
- data/locales/en.yml +2 -0
- data/vagrant-conoha.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1767c663991ea70fe2d5c9d703c9119463213bf5
|
4
|
+
data.tar.gz: 69bceaf3079b5a67efd0d9fcfb5959727b84a0cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/locales/en.yml
CHANGED
data/vagrant-conoha.gemspec
CHANGED
@@ -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', '
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|