vagrant-babushka 0.1.0 → 0.1.1

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: 0c21e99dc53da017ce744dbf00984705e537fa75
4
- data.tar.gz: 5aa688d0cc3af642b21eacebeb4c07f193b864bc
3
+ metadata.gz: c3e4fbf03d84d215e28bba59e99a4a4977320e97
4
+ data.tar.gz: e7cb954be61dd2e063d4c1f2c1072e89f199def8
5
5
  SHA512:
6
- metadata.gz: 4ec88c85577ce6a0907153e08a347cd4c4e4a958b7a70c20da4f69cf1cd8d0f709f19727ecba563b03dcc74776a49d42b33af873d0b0de7952ce345ac1e92e6c
7
- data.tar.gz: cc858b966ce45dceb6b23d9d7b37e195f7d70054492a35dc2d4b9eda73af6ae47166c159dad423236a21b0102ffafef5b3e39be49c4cdd83dd47db526cfb9a48
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 CurlMissing < Vagrant::Errors::VagrantError
10
- error_message <<-END.gsub(/ {8}|\n\Z/, "")
11
- cURL couldn't be found on the VM, and this plugin doesn't
12
- know how to install it on the guest OS.
13
-
14
- Try installing it manually, or consider adding the
15
- functionality to the plugin and opening a pull request.
16
- END
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 = "~#{escape username}/babushka-deps"
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 CurlMissing.new unless in_path? "apt-get"
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 if type == :stdout
205
+ ui.info data, :new_line => false
203
206
  end
204
207
  end
205
208
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Babushka
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -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, "~the\\ user/babushka-deps", {:id => 'babushka_deps', :nfs => false})
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.0
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 00:00:00.000000000 Z
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.0.3
115
+ rubygems_version: 2.1.11
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: A Babushka provisioner for Vagrant