virtualman 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ module Virtualman
38
38
  puts "Which VM do you want to clone?"
39
39
 
40
40
  vm_choice = choose "source_vms"
41
- vm_to_clone = Vm.new("\"#{vm_choice["name"]}\"")
41
+ vm_to_clone = Vm.new("#{vm_choice["name"]}")
42
42
 
43
43
  puts "How do you want to name your freshly spawned VM?"
44
44
  vm_name = Menu.ask
data/lib/virtualman/vm.rb CHANGED
@@ -19,7 +19,10 @@ module Virtualman
19
19
  # *param is a list of options
20
20
  def manage(action, *param)
21
21
  #puts "VBoxManage #{action} #{@name} #{param.join(" ")}"
22
+ p @name
23
+ p "VBoxManage #{action} \"#{@name}\" #{param.join(" ")}"
22
24
  output = `VBoxManage #{action} \"#{@name}\" #{param.join(" ")} 2>&1`
25
+
23
26
  if $?.exitstatus != 0
24
27
  Kernel.abort(output)
25
28
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtualman
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-15 00:00:00.000000000 Z
12
+ date: 2013-01-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: An interactive tool, and library to manage quickly your VMs
15
15
  email: pierre.ozoux@gmail.com