pauper 0.1.6 → 0.1.7
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/bin/pauper +8 -3
- metadata +3 -3
data/bin/pauper
CHANGED
@@ -85,11 +85,16 @@ class CLI < Thor
|
|
85
85
|
|
86
86
|
|
87
87
|
desc 'setup_osx [VMNAME]', 'Set up things for OS X'
|
88
|
-
def setup_osx(
|
88
|
+
def setup_osx(vm_path=nil)
|
89
89
|
pauper = Pauper.new
|
90
90
|
|
91
|
-
|
92
|
-
|
91
|
+
vm_path ||= "#{ENV['HOME']}/Documents/Virtual Machines*/*.vmwarevm"
|
92
|
+
|
93
|
+
vms = Dir[vm_path]
|
94
|
+
if vms.size == 0
|
95
|
+
puts "I can't find your VM. Try passing in a path to the <name>.vmwarevm dir."
|
96
|
+
exit
|
97
|
+
elsif vms.size > 1
|
93
98
|
puts "I'm not sure which VM I should use!"
|
94
99
|
vms.each do |vm|
|
95
100
|
puts "\t#{File.basename(vm)}"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 7
|
9
|
+
version: 0.1.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tyler McMullen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-04-
|
18
|
+
date: 2013-04-26 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|