anvil-cli 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/anvil/builder.rb CHANGED
@@ -38,7 +38,8 @@ class Anvil::Builder
38
38
  "buildpack" => options[:buildpack],
39
39
  "cache" => options[:cache],
40
40
  "env" => json_encode(options[:env] || {}),
41
- "source" => source
41
+ "source" => source,
42
+ "type" => options[:type]
42
43
  })
43
44
 
44
45
  slug_url = nil
data/lib/anvil/cli.rb CHANGED
@@ -15,6 +15,7 @@ class Anvil::CLI < Thor
15
15
 
16
16
  method_option :buildpack, :type => :string, :aliases => "-b", :desc => "Use a specific buildpack"
17
17
  method_option :pipeline, :type => :boolean, :aliases => "-p", :desc => "Pipe compile output to stderr and put the slug url on stdout"
18
+ method_option :type, :type => :string, :aliases => "-t", :desc => "Build a specific slug type (tgz, deb)"
18
19
 
19
20
  def build(source=nil)
20
21
  Anvil::Engine.build(source, options)
data/lib/anvil/engine.rb CHANGED
@@ -22,7 +22,8 @@ class Anvil::Engine
22
22
  buildpack = options[:buildpack] || read_anvil_metadata(source, "buildpack")
23
23
 
24
24
  build_options = {
25
- :buildpack => prepare_buildpack(buildpack)
25
+ :buildpack => prepare_buildpack(buildpack),
26
+ :type => options[:type] || "tgz"
26
27
  }
27
28
 
28
29
  builder = if is_url?(source)
@@ -49,7 +49,8 @@ class Anvil::Manifest
49
49
  "cache" => @cache_url,
50
50
  "env" => json_encode(options[:env] || {}),
51
51
  "keepalive" => "1",
52
- "manifest" => self.to_json
52
+ "manifest" => self.to_json,
53
+ "type" => options[:type]
53
54
  })
54
55
 
55
56
  slug_url = nil
data/lib/anvil/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Anvil
2
- VERSION = "0.14.0"
2
+ VERSION = "0.15.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anvil-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-10 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: progress
16
- requirement: &70222498148920 !ruby/object:Gem::Requirement
16
+ requirement: &70263468499340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70222498148920
24
+ version_requirements: *70263468499340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &70222498164760 !ruby/object:Gem::Requirement
27
+ requirement: &70263468498620 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.6.7
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70222498164760
35
+ version_requirements: *70263468498620
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &70222498164160 !ruby/object:Gem::Requirement
38
+ requirement: &70263468497660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 0.15.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70222498164160
46
+ version_requirements: *70263468497660
47
47
  description: Alternate Heroku build workflow
48
48
  email: david@dollar.io
49
49
  executables: