vagrant-sshfs 0.0.1 → 0.0.2.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +8 -20
- data/README.md +1 -1
- data/Vagrantfile +1 -1
- data/lib/vagrant-sshfs/actions.rb +7 -13
- data/lib/vagrant-sshfs/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81d061c188d45b25b9cc5bf9d85932ca7f679ce9
|
4
|
+
data.tar.gz: c7ce8acc278fda4ef846c73c945aeb539673033b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d3ccb43760691cf645866610877f2fe2d63baf10d49892d5f9ec051e8d7634d02764b0e63f69d6cd03504f01e63f4e9394cc355e1cbc9e2bde9c301bff83528
|
7
|
+
data.tar.gz: d68b314e0390ca2eca85e4da0838b5f11a8f16da910c6a109b5bdb4a8ec8cfd0b02c2e993bcf19888f776b13f573371e55e6de209d30662507341dd285ed170d
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in vagrant-dnsmasq.gemspec
|
4
|
-
|
5
3
|
group :development do
|
6
|
-
gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.
|
4
|
+
gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.4.0'
|
7
5
|
end
|
8
6
|
|
9
7
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,45 +1,34 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git://github.com/mitchellh/vagrant.git
|
3
|
-
revision:
|
4
|
-
tag: v1.
|
3
|
+
revision: 059de113a705f84ff165a4df049d38a2abcc60a8
|
4
|
+
tag: v1.4.0
|
5
5
|
specs:
|
6
|
-
vagrant (1.
|
6
|
+
vagrant (1.4.0)
|
7
7
|
childprocess (~> 0.3.7)
|
8
8
|
erubis (~> 2.7.0)
|
9
9
|
i18n (~> 0.6.0)
|
10
|
-
json (>= 1.5.1, < 1.8.0)
|
11
10
|
log4r (~> 1.1.9)
|
12
11
|
net-scp (~> 1.1.0)
|
13
|
-
net-ssh (
|
12
|
+
net-ssh (>= 2.6.6, < 2.8.0)
|
14
13
|
|
15
14
|
PATH
|
16
15
|
remote: .
|
17
16
|
specs:
|
18
|
-
vagrant-sshfs (0.0.
|
17
|
+
vagrant-sshfs (0.0.2)
|
19
18
|
|
20
19
|
GEM
|
21
20
|
remote: https://rubygems.org/
|
22
21
|
specs:
|
23
22
|
childprocess (0.3.9)
|
24
23
|
ffi (~> 1.0, >= 1.0.11)
|
25
|
-
diff-lcs (1.2.4)
|
26
24
|
erubis (2.7.0)
|
27
|
-
ffi (1.9.
|
28
|
-
i18n (0.6.
|
29
|
-
json (1.7.7)
|
25
|
+
ffi (1.9.3)
|
26
|
+
i18n (0.6.9)
|
30
27
|
log4r (1.1.10)
|
31
28
|
net-scp (1.1.2)
|
32
29
|
net-ssh (>= 2.6.5)
|
33
|
-
net-ssh (2.
|
30
|
+
net-ssh (2.7.0)
|
34
31
|
rake (10.1.0)
|
35
|
-
rspec (2.14.1)
|
36
|
-
rspec-core (~> 2.14.0)
|
37
|
-
rspec-expectations (~> 2.14.0)
|
38
|
-
rspec-mocks (~> 2.14.0)
|
39
|
-
rspec-core (2.14.5)
|
40
|
-
rspec-expectations (2.14.3)
|
41
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
42
|
-
rspec-mocks (2.14.3)
|
43
32
|
|
44
33
|
PLATFORMS
|
45
34
|
ruby
|
@@ -47,6 +36,5 @@ PLATFORMS
|
|
47
36
|
DEPENDENCIES
|
48
37
|
bundler (~> 1.3)
|
49
38
|
rake
|
50
|
-
rspec
|
51
39
|
vagrant!
|
52
40
|
vagrant-sshfs!
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ In the `Vagrantfile`, add a configuration like this:
|
|
16
16
|
|
17
17
|
`config.sshfs.paths = { "src" => "mountpoint" }`
|
18
18
|
|
19
|
-
`src` is the source folder in the box, `mountpoint` is the folder in the host machine. `
|
19
|
+
`src` is the source absolute path to the folder in the box, `mountpoint` is the folder in the host machine. `mountpoint` can be an absolute path, or relative to the `Vagrantfile`.
|
20
20
|
|
21
21
|
## Contributing
|
22
22
|
|
data/Vagrantfile
CHANGED
@@ -38,26 +38,20 @@ module Vagrant
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def private_key
|
41
|
-
ssh_info[:private_key_path]
|
41
|
+
Array(ssh_info[:private_key_path]).first
|
42
42
|
end
|
43
43
|
|
44
44
|
def check_src!(src)
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
machine.communicate.execute("mkdir -p #{folder}")
|
50
|
-
info("created_src", src: folder)
|
45
|
+
unless machine.communicate.test("test -d #{src}")
|
46
|
+
if ask("create_src", src: src) == "y"
|
47
|
+
machine.communicate.execute("mkdir -p #{src}")
|
48
|
+
info("created_src", src: src)
|
51
49
|
else
|
52
|
-
error("not_created_src", src:
|
50
|
+
error("not_created_src", src: src)
|
53
51
|
end
|
54
52
|
end
|
55
53
|
|
56
|
-
|
57
|
-
end
|
58
|
-
|
59
|
-
def src_folder(src)
|
60
|
-
"/home/#{username}/#{src}"
|
54
|
+
src
|
61
55
|
end
|
62
56
|
|
63
57
|
def check_target!(target)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-sshfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fabiokr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -46,6 +46,7 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- .gitignore
|
49
|
+
- CHANGELOG.md
|
49
50
|
- Gemfile
|
50
51
|
- Gemfile.lock
|
51
52
|
- LICENSE.txt
|
@@ -74,12 +75,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
75
|
version: '0'
|
75
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
77
|
requirements:
|
77
|
-
- - '
|
78
|
+
- - '>'
|
78
79
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
80
|
+
version: 1.3.1
|
80
81
|
requirements: []
|
81
82
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.0.14
|
83
84
|
signing_key:
|
84
85
|
specification_version: 4
|
85
86
|
summary: A Vagrant plugin that mounts folders with sshfs in the host machine.
|