pauper 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/pauper +8 -3
  2. 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(vm_name=nil)
88
+ def setup_osx(vm_path=nil)
89
89
  pauper = Pauper.new
90
90
 
91
- vms = Dir["#{ENV['HOME']}/Documents/Virtual Machines*/#{vm_name}*"]
92
- if vms.size > 1
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
- - 6
9
- version: 0.1.6
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-07 00:00:00 -07:00
18
+ date: 2013-04-26 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency