Commits

Kaspar Schiess committed 03f285f

. Also check before hide

  • Participants
  • Parent commits c455dc8
  • Tags r0.2.6

Comments (0)

Files changed (4)

 PATH
   remote: .
   specs:
-    mushroom (0.2.5)
+    mushroom (0.2.6)
       thor
 
 GEM

lib/mushroom/vm_storage.rb

     # Hides the vm storage from iSCSI. 
     #
     def hide
+      fail "VM storage #{name} does not exist." unless exist?
+      fail "VM storage #{name} is already hidden." unless exported?
+
       path, vm_name = split
       
       raise "Cannot find an exported dataset named #{name}. " \
 
 Gem::Specification.new do |s|
   s.name = 'mushroom'
-  s.version = '0.2.5'
+  s.version = '0.2.6'
 
   s.authors = ['Kaspar Schiess']
   s.email = 'kaspar.schiess@technologyastronauts.ch'

spec/fixture/etc/foobar.rb

 
   # Network configuration
   # nic 'eth0', 
-  #   macaddr: '0:24:81:76:a0:c5', 
+  #   macaddr: '0:24:81:3d:8f:12', 
   #   via: 'igbX'
 end