cookbook-release 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59ea3c1e5d1d222c334a409f63333f4a7339cebc36655043656fd1c26c78ec2f
4
- data.tar.gz: 59d2e2dfb5db2d3bd9e28fc341b0839c0fdb63a0d8483764528cb2bede290320
3
+ metadata.gz: 7538788e3e44d58e55dfe48772447e2a3bb907ae4b2d4cff09fcafc54c824335
4
+ data.tar.gz: 43b8f4c6cc08721f3afc8cbf1c49252480d23ce504d2ab3694c158af2a7f9600
5
5
  SHA512:
6
- metadata.gz: 5b292dadbf789958681065228a9732c0614008e9cca74a8e3bcf478cbbf42da2c0bef73f8a6ad2ae52309b0ac47573a6038ddd62480fb4c73afdab76616be4f1
7
- data.tar.gz: 5f856842d4d1588c21d3961d29f9346b8b41000e3054933dcfbdba830a3811703b5894b6ac41cdd530e9bb6d2e6a8911eb65874cfd423dfc0b98c2dc82f2f58f
6
+ metadata.gz: ab64808c6d9ea7a0355e03e3caf20597786f61c29f3606ca57bbf2228c9aa4b674b02a7b133bb094b0c1cf493ad63083cbb42384ae180f88216b7e6d527a1614
7
+ data.tar.gz: 47de72ef77bdc293efffea2617868e40379ac24cd5b160d283730427ff71ba54560fd72f636f9b31b81e896f1b3d762170a9957c40923485e5ad00035cc061b2
data/README.md CHANGED
@@ -63,6 +63,7 @@ Optional environment variables:
63
63
 
64
64
  ```
65
65
  export COOKBOOK_CATEGORY="Other" # defaults to Other
66
+ export SKIP_COOKOOK_UPLOAD=true #Just prepare release and push tag to git, but don't upload
66
67
  ```
67
68
 
68
69
  Note: this setup is intended to be used in a CI system such as jenkins or travis.
@@ -6,7 +6,7 @@ require 'English'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'cookbook-release'
9
- spec.version = '1.7.0'
9
+ spec.version = '1.8.0'
10
10
  spec.authors = ['Grégoire Seux']
11
11
  spec.email = 'g.seux@criteo.com'
12
12
  spec.summary = 'Provide primitives (and rake tasks) to release a cookbook'
@@ -34,6 +34,7 @@ module CookbookRelease
34
34
  def initialize(git, opts={})
35
35
  @git = git
36
36
  @no_prompt = opts[:no_prompt]
37
+ @skip_upload = opts[:skip_upload]
37
38
  @git.no_prompt = @no_prompt
38
39
  @category = opts[:category] || 'Other'
39
40
  end
@@ -108,7 +109,7 @@ module CookbookRelease
108
109
  exit 1 unless agreed
109
110
  git.push_tag(new_version)
110
111
  supermarket = Supermarket.new
111
- supermarket.publish_ck(@category, git.sub_dir)
112
+ supermarket.publish_ck(@category, git.sub_dir) unless @skip_upload
112
113
  rescue
113
114
  puts HighLine.color("Release aborted, you have to reset to previous state manually", :red)
114
115
  puts ":use with care: #{git.reset_command(new_version)}"
@@ -78,6 +78,7 @@ module CookbookRelease
78
78
  opts = {
79
79
  no_prompt: ENV['NO_PROMPT'],
80
80
  category: ENV['COOKBOOK_CATEGORY'],
81
+ skip_upload: ENV['SKIP_COOKOOK_UPLOAD']
81
82
  }
82
83
  git = GitUtilities.new
83
84
  Release.new(git, opts).release!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookbook-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grégoire Seux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-02 00:00:00.000000000 Z
11
+ date: 2023-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic