Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Do not add virtualbox deliverables if virtualbox not installed

  • Loading branch information...
commit 66567925d1783f3d1acf2811460b41e876bdb39e 1 parent e8ecbaf
@rubiojr authored
Showing with 5 additions and 3 deletions.
  1. +1 −1  Rakefile
  2. +4 −2 lib/multidisk-boxgrinder-plugin.rb
View
2  Rakefile
@@ -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"
View
6 lib/multidisk-boxgrinder-plugin.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.