berkflow 0.5.0 → 0.6.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
  SHA1:
3
- metadata.gz: 61bd83a6687682e623a2ab0acd6000846fd8f714
4
- data.tar.gz: 55d4049cafc63180e36a3fe0a6bdf03dbb253b12
3
+ metadata.gz: 6b1b505afce6594671b31210423985595030f95a
4
+ data.tar.gz: 8cf833b37c9e535322bf15bb3abd667b2bb9f8d5
5
5
  SHA512:
6
- metadata.gz: 8e421ae04ea6ecf888d651f032365a5ede525695fdef20e0adf691a7c07502edbc71b247c4fe363c50b8ec2f3b81be6a841009bfd4305f6aa21521db9b23508f
7
- data.tar.gz: b04fde1846f4e71d16777bcb66dd2fabc4d8383ffcffe7d5951d1f0cc63f454792604de75414ca938dc9a6b925947d4c09bd1863ef28d4ab362065125cc37419
6
+ metadata.gz: 560ff0d829b8993ac2dca5fd2cf76b51daa43c6d79be49e1b0972ff6c7c0fc55ac2e511f002bc6f85a6ec7127cb91b72dc3f237f7e4fb570377d146989513b44
7
+ data.tar.gz: f04ca1cbb12d9ebc8d27d80eeff6be2b32db69be1f13149a28276c01ab274f7c3ca4645554741a23439c637752f0ae487cef49bbba28f1fd6e37e1488b7c94f1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.6.0
2
+
3
+ * Enhancements
4
+ * Improve output in Thor release task
5
+ * Bug Fixes
6
+ * No longer prefix "v" to version tags. This was removed from the SemVer spec in 2.0.0
7
+
1
8
  # 0.5.0
2
9
 
3
10
  * Enhancements
data/README.md CHANGED
@@ -6,7 +6,15 @@ A command line tool for managing Chef Environments using Berkshelf and the [Envi
6
6
 
7
7
  ## Installation
8
8
 
9
- $ gem install berkflow
9
+ Install the [Chef-DK](http://getchef.com/downloads/chef-dk) and add the Chef-DK gem binaries directory to your path
10
+
11
+ $ export PATH=/opt/chefdk/embedded/bin:$PATH
12
+
13
+ Install Berkflow as a Chef-DK gem
14
+
15
+ $ sudo chef gem install berkflow
16
+ $ which blo
17
+ /opt/chefdk/embedded/bin/blo
10
18
 
11
19
  ## Usage
12
20
 
@@ -23,11 +23,12 @@ module Berkflow
23
23
  desc "release", "Create a Github Release for the current cookbook version."
24
24
  def release
25
25
  cookbook = Ridley::Chef::Cookbook.from_path(File.dirname(options[:berksfile]))
26
- version = "v#{cookbook.version}"
27
26
  begin
28
- release = github_client.create_release(repository, version)
27
+ say "Creating GitHub release (#{cookbook.version})"
28
+ release = github_client.create_release(repository, cookbook.version)
29
29
  rescue Octokit::UnprocessableEntity
30
- release = github_client.releases(repository).find { |release| release[:tag_name] == version }
30
+ say "Release already exists, skipping..."
31
+ release = github_client.releases(repository).find { |release| release[:tag_name] == cookbook.version }
31
32
  end
32
33
 
33
34
  berksfile = Berkshelf::Berksfile.from_file(options[:berksfile])
@@ -36,8 +37,10 @@ module Berkflow
36
37
  FileUtils.mkdir_p(pkg_dir)
37
38
  berksfile.package(out_file)
38
39
 
39
- say "Uploading #{File.basename(out_file)} to Github..."
40
- github_client.upload_asset(release[:url], out_file, name: "cookbooks.tar.gz", content_type: "application/x-tar")
40
+ begin
41
+ say "Uploading #{File.basename(out_file)} to GitHub..."
42
+ github_client.upload_asset(release[:url], out_file, name: "cookbooks.tar.gz", content_type: "application/x-tar")
43
+ rescue Errno::EPIPE; end
41
44
  end
42
45
 
43
46
  private
@@ -1,3 +1,3 @@
1
1
  module Berkflow
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berkflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-19 00:00:00.000000000 Z
11
+ date: 2014-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semverse