pkgr 1.0.4 → 1.0.5

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/lib/pkgr/builder.rb CHANGED
@@ -24,6 +24,8 @@ module Pkgr
24
24
  write_env
25
25
  write_init
26
26
  package
27
+ ensure
28
+ teardown if config.clean
27
29
  end
28
30
 
29
31
  # Check configuration, and verifies that the current distribution's requirements are satisfied
data/lib/pkgr/cli.rb CHANGED
@@ -24,6 +24,7 @@ module Pkgr
24
24
  method_option :before_precompile, :type => :string, :desc => "Provide a script to run just before the buildpack compilation"
25
25
  method_option :host, :type => :string, :desc => "Remote host to build on (default: local machine)"
26
26
  method_option :auto, :type => :boolean, :default => false, :desc => "Automatically attempt to install missing dependencies"
27
+ method_option :clean, :type => :boolean, :default => true, :desc => "Automatically clean up temporary dirs"
27
28
 
28
29
  def package(tarball)
29
30
  Pkgr.level = Logger::INFO if options[:verbose]
data/lib/pkgr/config.rb CHANGED
@@ -63,6 +63,7 @@ module Pkgr
63
63
  args.push "--auto" if auto
64
64
  args.push "--verbose" if verbose
65
65
  args.push "--debug" if debug
66
+ args.push "--clean" if clean
66
67
  args
67
68
  end
68
69
  end
data/lib/pkgr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pkgr
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: