Permalink
Browse files

* Do not add virtualbox deliverables if virtualbox not installed

  • Loading branch information...
1 parent e8ecbaf commit 66567925d1783f3d1acf2811460b41e876bdb39e @rubiojr committed Apr 12, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −1 Rakefile
  2. +4 −2 lib/multidisk-boxgrinder-plugin.rb
View
@@ -6,7 +6,7 @@ require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
- gem.version = '0.1.2'
+ gem.version = '0.1.3'
gem.name = "multidisk-boxgrinder-plugin"
gem.homepage = "http://github.com/rubiojr/multidisk-boxgrinder-plugin"
gem.license = "MIT"
@@ -7,10 +7,12 @@ class MultiDiskPlugin < BasePlugin
def after_init
register_deliverable(:vmdk_sparse => "#{@appliance_config.name}-sparse.vmdk")
- register_deliverable(:vmdk_stream => "#{@appliance_config.name}-streamoptimized.vmdk")
- register_deliverable(:vhd => "#{@appliance_config.name}.vhd")
register_deliverable(:qcow_sparse => "#{@appliance_config.name}-sparse.qcow2")
register_deliverable(:qcow_compressed => "#{@appliance_config.name}-compressed.qcow2")
+ if !`which VBoxManage`.empty?
+ register_deliverable(:vmdk_stream => "#{@appliance_config.name}-streamoptimized.vmdk")
+ register_deliverable(:vhd => "#{@appliance_config.name}.vhd")
+ end
end
def execute

0 comments on commit 6656792

Please sign in to comment.