vagrant-unificar 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/vagrant-unificar/command.rb +7 -3
- data/lib/vagrant-unificar/config.rb +1 -0
- data/lib/vagrant-unificar/plugin.rb +0 -1
- data/lib/vagrant-unificar/version.rb +1 -1
- data/vagrant-unificar.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a9792f781bc7b40a2539aadafda0079cfd11d7d
|
4
|
+
data.tar.gz: 2eb5cc454e2cf085335a5e9ecb884acd13825d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f0ac9872dc5be04bf6096a64394a20630fe9628f796ae7c37698919dfc8c1712fc7b46cb7958148927f5f45df24e766d4286f64bd11974e1b4c703fd20a83c9
|
7
|
+
data.tar.gz: 9aee2f47107ebe442f7b6b2ffd4c23d167934d96319600c7a9ef2e515eb0beb451b692611fc5e8fe6bd39892ed3c12c6911608f7eead61f16038de1c41634ee0
|
data/Gemfile.lock
CHANGED
@@ -16,8 +16,9 @@ module Vagrant
|
|
16
16
|
|
17
17
|
usuario = self.usuario
|
18
18
|
host_ip = machine.config.unificar.host_ip
|
19
|
-
local_dir = machine.config.unificar.local_dir
|
19
|
+
local_dir = machine.config.unificar.local_dir == "." ? File.realpath("."): machine.config.unificar.local_dir
|
20
20
|
remote_mountpoint = machine.config.unificar.remote_mountpoint
|
21
|
+
debug = machine.config.unificar.debug
|
21
22
|
|
22
23
|
if usuario.nil? || host_ip.nil? || local_dir.nil? || remote_mountpoint.nil?
|
23
24
|
machine.ui.error("Alguno de los valores necesarios en el archivo Vagrantfile no fueron cargados" , {:prefix => false})
|
@@ -34,8 +35,11 @@ module Vagrant
|
|
34
35
|
|
35
36
|
cmd = "echo \"#{password}\" | sshfs -o allow_other -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o password_stdin #{usuario}@#{host_ip}:#{local_dir} #{remote_mountpoint}"
|
36
37
|
|
37
|
-
|
38
|
-
|
38
|
+
|
39
|
+
if not debug.nil? and debug == true
|
40
|
+
machine.ui.info(cmd, {:prefix => false})
|
41
|
+
end
|
42
|
+
|
39
43
|
ret = machine.communicate.execute(cmd, {:error_check => false})
|
40
44
|
if ret == 0
|
41
45
|
machine.ui.info("#{local_dir} -> #{remote_mountpoint} Montado correctamente", {:prefix => false})
|
data/vagrant-unificar.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "vagrant-unificar"
|
8
8
|
spec.version = Vagrant::Unificar::VERSION
|
9
9
|
spec.authors = ["Raichuk"]
|
10
|
-
spec.email = [""]
|
10
|
+
spec.email = ["seba.alvarez16@gmail.com"]
|
11
11
|
spec.summary = %q{Plugin para Vagrant que mantiene sincronizadas la carpeta entre host y guest}
|
12
12
|
spec.description = %q{Plugin para Vagrant que mantiene sincronizadas la carpeta entre host y guest}
|
13
13
|
spec.homepage = ""
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-unificar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raichuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
description: Plugin para Vagrant que mantiene sincronizadas la carpeta entre host
|
42
42
|
y guest
|
43
43
|
email:
|
44
|
-
-
|
44
|
+
- seba.alvarez16@gmail.com
|
45
45
|
executables: []
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|