vagrant-kaigara 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-kaigara/provisioner.rb +8 -4
- data/lib/vagrant-kaigara/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18c24a498c99159a8d2eb32931f1fa6620c994c2
|
4
|
+
data.tar.gz: 59c24f5d501e0089fe9a9fadadbd26f05806749c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c610ad813ff57d3acc35d1770226c25827d9547e59f30368d3dd6b8af0e3fcb50f58b042ba3280b5015bfd315ac5f05f017878a097130153cfc93bcc066141ce
|
7
|
+
data.tar.gz: cbb2af91debdac7a7d2beb4a2524bbdf4be91d73422b95385836fabedbbc9ab82ae50f9a1782daf3cf6a24b41507e87a7ea03adb209e6e539264d45d7293fbe2
|
@@ -10,7 +10,7 @@ module VagrantPlugins
|
|
10
10
|
@machine.ui.info("Ruby is already installed")
|
11
11
|
else
|
12
12
|
@machine.ui.info("Installing Ruby...")
|
13
|
-
|
13
|
+
action("curl http://mirror.kaigara.org/scripts/kairb.sh | bash /dev/stdin")
|
14
14
|
end
|
15
15
|
|
16
16
|
if kaigara_installed?
|
@@ -27,7 +27,7 @@ module VagrantPlugins
|
|
27
27
|
# Execute a command at vm
|
28
28
|
def action(command, opts = {})
|
29
29
|
@machine.communicate.tap do |comm|
|
30
|
-
comm.execute(command, { error_key: :ssh_bad_exit_status_muted, sudo: true }.merge(opts) ) do |type, data|
|
30
|
+
comm.execute("source /etc/profile; #{command}", { error_key: :ssh_bad_exit_status_muted, sudo: true }.merge(opts) ) do |type, data|
|
31
31
|
Thread.new do
|
32
32
|
handle_comm(type, data)
|
33
33
|
end
|
@@ -53,11 +53,15 @@ module VagrantPlugins
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def ruby_installed?
|
56
|
-
|
56
|
+
test('test -f /opt/kaigara') && test('ruby -v')
|
57
57
|
end
|
58
58
|
|
59
59
|
def kaigara_installed?
|
60
|
-
|
60
|
+
test('kaish')
|
61
|
+
end
|
62
|
+
|
63
|
+
def test(t)
|
64
|
+
@machine.communicate.test(t, sudo: true)
|
61
65
|
end
|
62
66
|
end
|
63
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-kaigara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Koval
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|