vagrant-bundler-tools 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mdown +6 -2
- data/lib/vagrant_bundler_tools/command.rb +5 -1
- metadata +5 -5
data/README.mdown
CHANGED
@@ -22,9 +22,13 @@ from the host.
|
|
22
22
|
|
23
23
|
You can also use
|
24
24
|
|
25
|
-
|
25
|
+
- List bundled gems on the host
|
26
26
|
|
27
|
-
|
27
|
+
vagrant bundle list
|
28
|
+
|
29
|
+
- Show path (on the host) to the named gem bundled on the guest
|
30
|
+
|
31
|
+
vagrant bundle show <gem_name>
|
28
32
|
|
29
33
|
## Caveats
|
30
34
|
|
@@ -2,6 +2,11 @@ module VagrantBundlerTools
|
|
2
2
|
class Command < Vagrant::Command::GroupBase
|
3
3
|
register "bundle", "Commands to interact with bundled gems on guest"
|
4
4
|
|
5
|
+
desc "list", "Show all of the gems in the guest's bundle"
|
6
|
+
def list
|
7
|
+
env.ui.info ssh_execute("cd /vagrant && bundle list")
|
8
|
+
end
|
9
|
+
|
5
10
|
desc "show GEM_NAME", "Show location of guest's bundled gem on host file system"
|
6
11
|
def show(gem_name)
|
7
12
|
env.ui.info locate_gem(gem_name)
|
@@ -24,7 +29,6 @@ module VagrantBundlerTools
|
|
24
29
|
end
|
25
30
|
|
26
31
|
protected
|
27
|
-
|
28
32
|
def locate_gem(gem_name)
|
29
33
|
guest_path = ssh_execute("cd /vagrant && bundle show #{gem_name}").strip
|
30
34
|
unless guest_path.start_with?('/vagrant/')
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-bundler-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joel Chippindale
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
prerelease: false
|
93
93
|
name: minitest
|
94
94
|
description: |
|
95
|
-
vagrant-bundle-tools
|
95
|
+
vagrant-bundle-tools is a vagrant plugin to make it possible to interact
|
96
96
|
with the guest's bundled gems directory from the host.
|
97
97
|
|
98
98
|
email: joel@joelchippindale.com
|