concourse 0.11.0 → 0.12.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ab2df768e5b7ac6afcaab5a975c6e53c05a8641
4
- data.tar.gz: 2b1abb54bfb8f1dbba58a554061ede0738e73559
3
+ metadata.gz: 10b3e2e3d7756b1c61293045f6a7a991df14ec30
4
+ data.tar.gz: c44c2ce5b4d0e2091893fa1407e1d73a8d566fbc
5
5
  SHA512:
6
- metadata.gz: 97b65993d219f7fb11ddf8df65734ce656d3e8e8b4748676d05469a443b54c79b0e02cfd27e6ee6826e320fa9f651cfbf113b3b4dd23ad5994341add3a22014e
7
- data.tar.gz: d86a3f959ca577664b95eca76fa6ad2f37e12c6666a0e59407abfa488e50def7627119255e3af57288f6b6e18f90062cb0e02dc574fdfc27771a5de02f7511e0
6
+ metadata.gz: bb6a2494b9e0837859fae6f17ef44702607a4bf613d3060899ee36553694fab366318c67d4ec2e6cab03ea9adf71c9a625641acfad977508c913533b25b47f8c
7
+ data.tar.gz: a53d14f3f898d53e6a7b6ae2f6756ef76ea86a49b38f475b54d52a26ae52217dae930f9de96c6d93a47f90aa7499bd4d082cd383be77cb738516440070c48f40
@@ -1,5 +1,16 @@
1
1
  # concourse-gem changelog
2
2
 
3
+ ## 0.12.0 / 2017-02-14
4
+
5
+ ### Features
6
+
7
+ * rake task `concourse:init`
8
+
9
+ ### Bug fixes
10
+
11
+ * properly require 'yaml'
12
+
13
+
3
14
  ## 0.11.0 / 2017-02-14
4
15
 
5
16
  Stop using `myproject.yml.erb` and just interpret `myproject.yml` as an ERB template. @jtarchie was right. He's always right.
@@ -1,4 +1,5 @@
1
1
  require "concourse/version"
2
+ require "yaml"
2
3
 
3
4
  class Concourse
4
5
  include Rake::DSL
@@ -44,12 +45,26 @@ class Concourse
44
45
  end
45
46
 
46
47
  unless File.exist? pipeline_erb_filename
47
- raise "ERROR: concourse pipeline template #{pipeline_erb_filename.inspect} does not exist"
48
+ warn "WARNING: concourse template #{pipeline_erb_filename.inspect} does not exist, run `rake concourse:init`"
48
49
  end
49
50
 
50
51
  CLOBBER.include pipeline_filename if defined?(CLOBBER)
51
52
 
52
53
  namespace :concourse do
54
+ #
55
+ # project commands
56
+ #
57
+ desc "bootstrap a concourse config"
58
+ task :init do
59
+ FileUtils.mkdir_p "concourse"
60
+ FileUtils.mkdir_p "concourse/tasks"
61
+ FileUtils.touch pipeline_erb_filename
62
+ File.open ".gitignore", "a" do |f|
63
+ f.puts "concourse/private.yml"
64
+ f.puts "concourse/#{project_name}.final.yml"
65
+ end
66
+ end
67
+
53
68
  #
54
69
  # pipeline commands
55
70
  #
@@ -2,5 +2,5 @@ require "rake"
2
2
  require "erb"
3
3
 
4
4
  class Concourse
5
- VERSION = "0.11.0"
5
+ VERSION = "0.12.0"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio