boxgrinder-ubuntu-plugin 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -33,7 +33,7 @@ Remove not required packages:
33
33
 
34
34
  Install libguestfs packages:
35
35
 
36
- $ dpkg -i guestmount* libguestfs* python-guestfs*
36
+ $ sudo dpkg -i guestmount* libguestfs* python-guestfs* febootstrap*
37
37
 
38
38
  **Install guestfs rubygem**
39
39
 
@@ -55,7 +55,15 @@ There are no binary packages for the libguestfs ruby bindings ATM. Grab the gem
55
55
  There's a sample appliance definition at:
56
56
 
57
57
  https://github.com/rubiojr/boxgrinder-appliances/tree/master/ubuntu-natty
58
-
58
+
59
+ ## Caveats
60
+
61
+ The Ubuntu plugin is still in alpha stage. If you find issues with it, please mailme, open an issue or submit a pull request ;)
62
+
63
+ Some stuff (like executing post commands) is missing.
64
+
65
+ Creating Fedora/RHEL/CentOS appliances under Ubuntu won't work.
66
+
59
67
  ## Copyright
60
68
 
61
69
  Copyright (c) 2011 Sergio Rubio. See LICENSE.txt for
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rake'
6
6
  require 'jeweler'
7
7
  Jeweler::Tasks.new do |gem|
8
8
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
9
- gem.version = '0.1.1'
9
+ gem.version = '0.1.2'
10
10
  gem.name = "boxgrinder-ubuntu-plugin"
11
11
  gem.homepage = "http://github.com/rubiojr/boxgrinder-ubuntu-plugin"
12
12
  gem.license = "MIT"
@@ -73,6 +73,10 @@ module BoxGrinder
73
73
  FileUtils.mv dsource, ddest
74
74
  @log.debug "Ubuntu appliance ready"
75
75
  rescue => e
76
+ @log.error "Could not create the appliance!"
77
+ @log.error $!
78
+ @log.error $@
79
+ abort
76
80
  ensure
77
81
  #
78
82
  # Cleanup
@@ -81,8 +85,10 @@ module BoxGrinder
81
85
  # tmp/out dirs (useful for debugging)
82
86
  #
83
87
  if not ENV["BOXGRINDER_DEBUG_NOCLEAN"]
84
- @log.debug "Cleaning tmp/work directories"
85
- FileUtils.rm_rf "#{@dir.base}/out" if File.exist? "#{@dir.base}/out"
88
+ if File.exist? "#{@dir.base}/out"
89
+ @log.debug "Cleaning work directories"
90
+ FileUtils.rm_rf "#{@dir.base}/out"
91
+ end
86
92
  end
87
93
  end
88
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxgrinder-ubuntu-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: