vagrant-darwin-smb 0.1.2 → 0.1.3
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/Gemfile +9 -9
- data/README.md +14 -14
- data/Rakefile +4 -4
- data/lib/vagrant-darwin-smb.rb +4 -4
- data/lib/vagrant-darwin-smb/cap/mount_smb_shared_folder.rb +11 -3
- data/lib/vagrant-darwin-smb/version.rb +3 -3
- data/vagrant-darwin-smb.gemspec +23 -19
- metadata +13 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92c7b253944700ab2ec0af79665e6fc3505aacbf
|
4
|
+
data.tar.gz: a093e260437703e896187447347c90bc0c31d65b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c5517d68d3d4b67e81b950c3f930863967201bb6f7bae6ddf6116e4596a8fcb3ee6b32e07ed3b1ba742888706f81f3481d8708aad4aadfa316a244744aee02
|
7
|
+
data.tar.gz: 3423241902441bf5945165863adf591064df46e0de27f18abbbcfb06cbf891b55c2e7d755677ca386e48d34f2671dd59e86e3e96b2fdff3722037480726f15a8
|
data/Gemfile
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
group :development do
|
4
|
-
gem "vagrant", git: "https://github.com/mitchellh/vagrant.git"
|
5
|
-
end
|
6
|
-
|
7
|
-
group :plugins do
|
8
|
-
gem "vagrant-darwin-smb", path: "."
|
9
|
-
end
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
group :development do
|
4
|
+
gem "vagrant", git: "https://github.com/mitchellh/vagrant.git"
|
5
|
+
end
|
6
|
+
|
7
|
+
group :plugins do
|
8
|
+
gem "vagrant-darwin-smb", path: "."
|
9
|
+
end
|
data/README.md
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
# vagrant-darwin-smb plugin
|
2
|
-
This plugin provides capability to add SMB synced folders to Darwin (OS X) guests. It is a simple wrapper/proxy to [mount_smbfs](http://linux.die.net/man/8/smbmount) command.
|
3
|
-
|
4
|
-
## Installation
|
5
|
-
$ vagrant plugin install vagrant-darwin-smb
|
6
|
-
|
7
|
-
## Usage
|
8
|
-
Define SMB synced folders in your Vagrantfile as usual. It should just work. If you need custom options you can pass an array of strings as `mount_options` parameter.
|
9
|
-
|
10
|
-
## Caveats
|
11
|
-
Currently, there is no ability to pass -f, -d or -N parameters to mount_smbfs.
|
12
|
-
|
13
|
-
## Acknowledgments
|
14
|
-
This plugin steals shamelessly from core Vagrant Darwin NFS and Linux SMB capabilities. All credit goes to Vagrant guys.
|
1
|
+
# vagrant-darwin-smb plugin
|
2
|
+
This plugin provides capability to add SMB synced folders to Darwin (OS X) guests. It is a simple wrapper/proxy to [mount_smbfs](http://linux.die.net/man/8/smbmount) command.
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
$ vagrant plugin install vagrant-darwin-smb
|
6
|
+
|
7
|
+
## Usage
|
8
|
+
Define SMB synced folders in your Vagrantfile as usual. It should just work. If you need custom options you can pass an array of strings as `mount_options` parameter.
|
9
|
+
|
10
|
+
## Caveats
|
11
|
+
Currently, there is no ability to pass -f, -d or -N parameters to mount_smbfs.
|
12
|
+
|
13
|
+
## Acknowledgments
|
14
|
+
This plugin steals shamelessly from core Vagrant Darwin NFS and Linux SMB capabilities. All credit goes to Vagrant guys.
|
data/Rakefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler/setup'
|
3
|
-
|
4
|
-
Bundler::GemHelper.install_tasks
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
Bundler::GemHelper.install_tasks
|
data/lib/vagrant-darwin-smb.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
module VagrantDarwinSMB
|
2
|
-
require 'vagrant-darwin-smb/version'
|
3
|
-
require 'vagrant-darwin-smb/plugin'
|
4
|
-
end
|
1
|
+
module VagrantDarwinSMB
|
2
|
+
require 'vagrant-darwin-smb/version'
|
3
|
+
require 'vagrant-darwin-smb/plugin'
|
4
|
+
end
|
@@ -12,8 +12,16 @@ module VagrantDarwinSMB
|
|
12
12
|
extend Vagrant::Util::Retryable
|
13
13
|
def self.mount_smb_shared_folder(machine, name, guestpath, options)
|
14
14
|
expanded_guest_path = machine.guest.capability(:shell_expand_guest_path, guestpath)
|
15
|
-
|
16
|
-
|
15
|
+
|
16
|
+
mount_point_owner = options[:owner];
|
17
|
+
if mount_point_owner
|
18
|
+
machine.communicate.sudo("mkdir -p #{expanded_guest_path}")
|
19
|
+
machine.communicate.sudo("chown #{mount_point_owner} #{expanded_guest_path}")
|
20
|
+
else
|
21
|
+
# fallback to assumption that user has permission
|
22
|
+
# to create the specified mountpoint
|
23
|
+
machine.communicate.execute("mkdir -p #{expanded_guest_path}")
|
24
|
+
end
|
17
25
|
|
18
26
|
smb_password = Shellwords.shellescape(options[:smb_password])
|
19
27
|
mount_opts = options[:mount_options];
|
@@ -21,7 +29,7 @@ module VagrantDarwinSMB
|
|
21
29
|
(mount_opts ? "-o '#{mount_opts.join(",")}' " : "") +
|
22
30
|
"'//#{options[:smb_username]}:#{smb_password}@#{options[:smb_host]}/#{name}' " +
|
23
31
|
"#{expanded_guest_path}"
|
24
|
-
retryable(on: Errors::DarwinMountFailed, tries: 10, sleep:
|
32
|
+
retryable(on: Errors::DarwinMountFailed, tries: 10, sleep: 2) do
|
25
33
|
machine.communicate.execute(
|
26
34
|
mount_command,
|
27
35
|
error_class: Errors::DarwinMountFailed)
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module VagrantDarwinSMB
|
2
|
-
VERSION = "0.1.
|
3
|
-
end
|
1
|
+
module VagrantDarwinSMB
|
2
|
+
VERSION = "0.1.3"
|
3
|
+
end
|
data/vagrant-darwin-smb.gemspec
CHANGED
@@ -1,20 +1,24 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
$:.unshift File.expand_path("../lib", __FILE__)
|
3
|
-
require 'vagrant-darwin-smb/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "vagrant-darwin-smb"
|
7
|
-
spec.version = VagrantDarwinSMB::VERSION
|
8
|
-
spec.authors = ["alh84001"]
|
9
|
-
spec.email = ["alh84001.hr@hotmail.com"]
|
10
|
-
|
11
|
-
spec.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
spec.
|
16
|
-
spec.
|
17
|
-
|
18
|
-
|
19
|
-
spec.
|
1
|
+
# coding: utf-8
|
2
|
+
$:.unshift File.expand_path("../lib", __FILE__)
|
3
|
+
require 'vagrant-darwin-smb/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "vagrant-darwin-smb"
|
7
|
+
spec.version = VagrantDarwinSMB::VERSION
|
8
|
+
spec.authors = ["alh84001"]
|
9
|
+
spec.email = ["alh84001.hr@hotmail.com"]
|
10
|
+
|
11
|
+
if spec.respond_to?(:metadata)
|
12
|
+
spec.metadata['allowed_push_host'] = "Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
13
|
+
end
|
14
|
+
|
15
|
+
spec.summary = %q{Adds SMB synced folder capability to a Darwin guest.}
|
16
|
+
spec.homepage = "https://github.com/alh84001/vagrant-darwin-smb"
|
17
|
+
spec.license = "MIT"
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0")
|
20
|
+
spec.require_path = 'lib'
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
20
24
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-darwin-smb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alh84001
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.7'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
description:
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
-
|
48
|
+
- .gitignore
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE
|
51
51
|
- README.md
|
@@ -59,24 +59,26 @@ files:
|
|
59
59
|
homepage: https://github.com/alh84001/vagrant-darwin-smb
|
60
60
|
licenses:
|
61
61
|
- MIT
|
62
|
-
metadata:
|
62
|
+
metadata:
|
63
|
+
allowed_push_host: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org,
|
64
|
+
or delete to allow pushes to any server.
|
63
65
|
post_install_message:
|
64
66
|
rdoc_options: []
|
65
67
|
require_paths:
|
66
68
|
- lib
|
67
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
70
|
requirements:
|
69
|
-
- -
|
71
|
+
- - '>='
|
70
72
|
- !ruby/object:Gem::Version
|
71
73
|
version: '0'
|
72
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
75
|
requirements:
|
74
|
-
- -
|
76
|
+
- - '>='
|
75
77
|
- !ruby/object:Gem::Version
|
76
78
|
version: '0'
|
77
79
|
requirements: []
|
78
80
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
81
|
+
rubygems_version: 2.0.14
|
80
82
|
signing_key:
|
81
83
|
specification_version: 4
|
82
84
|
summary: Adds SMB synced folder capability to a Darwin guest.
|