vagrant-bundler-tools 0.0.2 → 0.0.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.
data/README.mdown CHANGED
@@ -22,9 +22,13 @@ from the host.
22
22
 
23
23
  You can also use
24
24
 
25
- vagrant bundle show <gem_name>
25
+ - List bundled gems on the host
26
26
 
27
- On the host to show path (on the host) to the named gem bundled on the guest.
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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-09-30 00:00:00 Z
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 in a vagrant plugin to make it possible to interact
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