vagrant-babushka 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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3e4fbf03d84d215e28bba59e99a4a4977320e97
|
|
4
|
+
data.tar.gz: e7cb954be61dd2e063d4c1f2c1072e89f199def8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 459b3436c488c3cd84e7388a14db363f2ab912771e30ca807f6daf4e23c897458d48ebe19761a70557c5b0ba2b6c73116474e8998d9b11d958d248cde919e087
|
|
7
|
+
data.tar.gz: 04d9b502b199e485260ebb9148ff4e321c707bd73c776b668e24f2a6cee83e23f1d1925b7ca2b347680d9d124cd7844e981b8f2c63848ee605209fb8176df286
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'forwardable'
|
|
2
|
+
require 'shellwords'
|
|
2
3
|
|
|
3
4
|
module VagrantPlugins
|
|
4
5
|
module Babushka
|
|
@@ -6,14 +7,16 @@ module VagrantPlugins
|
|
|
6
7
|
class Provisioner < Vagrant.plugin("2", :provisioner)
|
|
7
8
|
|
|
8
9
|
# Exception raised if cURL isn't on the VM and can't be installed
|
|
9
|
-
class
|
|
10
|
-
error_message
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
class CurlMissingError < Vagrant::Errors::VagrantError
|
|
11
|
+
def error_message
|
|
12
|
+
<<-END.gsub(/ {8}|\n\Z/, "")
|
|
13
|
+
cURL couldn't be found on the VM, and this plugin doesn't
|
|
14
|
+
know how to install it on the guest OS.
|
|
15
|
+
|
|
16
|
+
Try installing it manually, or consider adding the
|
|
17
|
+
functionality to the plugin and opening a pull request.
|
|
18
|
+
END
|
|
19
|
+
end
|
|
17
20
|
end
|
|
18
21
|
|
|
19
22
|
# Allow delegation of methods to an accessor
|
|
@@ -52,7 +55,7 @@ module VagrantPlugins
|
|
|
52
55
|
# Shares local deps with the virtual machine
|
|
53
56
|
def share_local_deps(root_config)
|
|
54
57
|
local_path = config.local_deps_path
|
|
55
|
-
remote_path = "
|
|
58
|
+
remote_path = "/home/#{escape username}/babushka-deps"
|
|
56
59
|
opts = {:id => 'babushka_deps', :nfs => false}
|
|
57
60
|
root_config.vm.synced_folder local_path, remote_path, opts
|
|
58
61
|
end
|
|
@@ -135,7 +138,7 @@ module VagrantPlugins
|
|
|
135
138
|
|
|
136
139
|
# Installs cURL on the virtual machine
|
|
137
140
|
def install_curl!
|
|
138
|
-
raise
|
|
141
|
+
raise CurlMissingError.new unless in_path? "apt-get"
|
|
139
142
|
ui.info "Installing cURL package on VM...", :scope => name
|
|
140
143
|
communicate.sudo "apt-get --quiet --assume-yes install curl"
|
|
141
144
|
end
|
|
@@ -199,7 +202,7 @@ module VagrantPlugins
|
|
|
199
202
|
# data: The echoed data as a string
|
|
200
203
|
def log_stdout
|
|
201
204
|
lambda do |type, data|
|
|
202
|
-
ui.info data, :new_line => false
|
|
205
|
+
ui.info data, :new_line => false
|
|
203
206
|
end
|
|
204
207
|
end
|
|
205
208
|
|
|
@@ -17,7 +17,7 @@ describe VagrantPlugins::Babushka::Provisioner do
|
|
|
17
17
|
|
|
18
18
|
it "should configure the directory to be shared" do
|
|
19
19
|
expect(config).to receive(:local_deps_path).and_return(local_deps_path)
|
|
20
|
-
expect(vm).to receive(:synced_folder).with(local_deps_path, "
|
|
20
|
+
expect(vm).to receive(:synced_folder).with(local_deps_path, "/home/the\\ user/babushka-deps", {:id => 'babushka_deps', :nfs => false})
|
|
21
21
|
provisioner.username = double "username", :to_s => "the user"
|
|
22
22
|
provisioner.share_local_deps root_config
|
|
23
23
|
subject
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-babushka
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vladimir Valgis
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-11-
|
|
12
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
112
112
|
version: '0'
|
|
113
113
|
requirements: []
|
|
114
114
|
rubyforge_project:
|
|
115
|
-
rubygems_version: 2.
|
|
115
|
+
rubygems_version: 2.1.11
|
|
116
116
|
signing_key:
|
|
117
117
|
specification_version: 4
|
|
118
118
|
summary: A Babushka provisioner for Vagrant
|