vagrant-sync 0.1.0 → 0.1.1
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.
- data/README.md +8 -2
- data/lib/vagrant_sync.rb +2 -2
- data/vagrant-sync.gemspec +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -4,6 +4,12 @@ Vagrant command to copy files in your box using rsync.
|
|
4
4
|
|
5
5
|
You don't need to add anything to your ssh-config to use this command.
|
6
6
|
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
```
|
10
|
+
$ gem install vagrant-sync
|
11
|
+
```
|
12
|
+
|
7
13
|
## Usage
|
8
14
|
|
9
15
|
```
|
@@ -12,9 +18,9 @@ $ vagrant sync [vm_name] --from /bar/foo --to /foo/bar
|
|
12
18
|
|
13
19
|
## Options
|
14
20
|
|
15
|
-
* --from: source file or directory, if this
|
21
|
+
* --from: source file or directory, if this option is not provided the current directory is copied.
|
16
22
|
* --to: destination directory, mandatory.
|
17
|
-
* --verbose
|
23
|
+
* --verbose: very verbose.
|
18
24
|
|
19
25
|
## Copyright
|
20
26
|
|
data/lib/vagrant_sync.rb
CHANGED
@@ -27,8 +27,8 @@ class Sync < Vagrant::Command::Base
|
|
27
27
|
options[:from] ||= Dir.pwd
|
28
28
|
|
29
29
|
with_target_vms(argv[0], :single_target => true) do |vm|
|
30
|
-
raise Errors::VMNotCreatedError if !vm.created?
|
31
|
-
raise Errors::VMInaccessible if !vm.state == :inaccessible
|
30
|
+
raise Vagrant::Errors::VMNotCreatedError if !vm.created?
|
31
|
+
raise Vagrant::Errors::VMInaccessible if !vm.state == :inaccessible
|
32
32
|
|
33
33
|
with_target_vms(argv[0], :single_target => true) do |vm|
|
34
34
|
ssh_info = vm.ssh.info
|
data/vagrant-sync.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
12
12
|
gem.name = "vagrant-sync"
|
13
13
|
gem.require_paths = ["lib"]
|
14
|
-
gem.version = '0.1.
|
14
|
+
gem.version = '0.1.1'
|
15
15
|
|
16
16
|
gem.add_runtime_dependency 'vagrant'
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: vagrant
|
16
|
-
requirement: &
|
16
|
+
requirement: &2155650360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2155650360
|
25
25
|
description: rsync for Vagrant
|
26
26
|
email:
|
27
27
|
- david.calavera@gmail.com
|