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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78daaa2d7225ef254b39e87a2dd68548c2947393
4
- data.tar.gz: 151c5e67a6705ae05a7dc2e1b35c9bb5e7c73870
3
+ metadata.gz: 1a9792f781bc7b40a2539aadafda0079cfd11d7d
4
+ data.tar.gz: 2eb5cc454e2cf085335a5e9ecb884acd13825d33
5
5
  SHA512:
6
- metadata.gz: 93a5a73be7802f534617f53f6dc314c7f970cad62409378d1c1ee8f06efb526ce3f2a5f1f72b934cb78380abf5cc1c7cd38059691e52ecb6c891087d9e53fe11
7
- data.tar.gz: 2b5ff6ded994c0bd3ce6ae82266978812b7fe283d168516fe13e94945ea4910fa9d058ea135ab76d091a9fcddb030a59fee3b205cff4f518f60e991563e533ed
6
+ metadata.gz: 3f0ac9872dc5be04bf6096a64394a20630fe9628f796ae7c37698919dfc8c1712fc7b46cb7958148927f5f45df24e766d4286f64bd11974e1b4c703fd20a83c9
7
+ data.tar.gz: 9aee2f47107ebe442f7b6b2ffd4c23d167934d96319600c7a9ef2e515eb0beb451b692611fc5e8fe6bd39892ed3c12c6911608f7eead61f16038de1c41634ee0
data/Gemfile.lock CHANGED
@@ -23,7 +23,7 @@ GIT
23
23
  PATH
24
24
  remote: .
25
25
  specs:
26
- vagrant-unificar (0.0.4)
26
+ vagrant-unificar (0.0.5)
27
27
 
28
28
  GEM
29
29
  remote: https://rubygems.org/
@@ -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
- #TODO: Habilitar debug en el Vagrantfile para poder ver el comando
38
- #puts cmd
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})
@@ -5,6 +5,7 @@ module Vagrant
5
5
  attr_accessor :local_dir
6
6
  attr_accessor :remote_mountpoint
7
7
  attr_accessor :host_ip
8
+ attr_accessor :debug
8
9
 
9
10
  end
10
11
  end
@@ -2,7 +2,6 @@ require "vagrant-unificar/version"
2
2
 
3
3
  module Vagrant
4
4
  module Unificar
5
- # Your code goes here...
6
5
  class Plugin < Vagrant.plugin("2")
7
6
  name "Unificar"
8
7
  description = <<-DESC
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Unificar
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -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
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-01-29 00:00:00.000000000 Z
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: []