heroku_builder 0.1.1 → 0.1.2

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: 9c1e7fd65d5f00bcf2611a0aad7c978cf51013ce
4
- data.tar.gz: 62612b981eb174f5e068cd6d1172341931d36f92
3
+ metadata.gz: d004817b02f37030dab30bc7f9b2029dae7f4d7b
4
+ data.tar.gz: b0d847744d4b20260b62fecdb011da9209379570
5
5
  SHA512:
6
- metadata.gz: 01dc148cbead348ac82d0a560797e11491ec23cf4a1b5cc5b784740fa8b7d3116b7adc43d702257de9a359dd16f0b468df0f09472de5ce4df5a80dee69df6a32
7
- data.tar.gz: dc7af0370b374cc85c75d3b0374fbe44aa1b46e2fba02ac1902243604188befe5e454f9bcb31599b91f25a608b8d16be856018c8bf3cd0cebf393cc2f6e5f93d
6
+ metadata.gz: d866d9513ddbba65b69d0ed05cbf5b7bf5c441d1016b2d8a74433d8d3d37f104bdac9137bdcf7c148570222aa05032e6680ab4b76491f65fe12fdb4ab7e6fa20
7
+ data.tar.gz: 037c8db383f2090eaec55d2caa460e96d0f5b464e73f8409f448c88f66c4346e998f4f8e1607a36806adac9550c2fbd282076c44e20a41257e8fcd40c0ab6fa2
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Heroku Builder
2
+ [![Gem Version](https://badge.fury.io/rb/heroku_builder.svg)](https://badge.fury.io/rb/heroku_builder) [![Code Climate](https://codeclimate.com/github/jvanderhoof/heroku_builder/badges/gpa.svg)](https://codeclimate.com/github/jvanderhoof/heroku_builder)
2
3
 
3
4
  Heroku Builder allows for straight forward configuration of your multi (or single) stage Heroku application as well as dead simple deployment. It uses a YAML configuration to manage a multi-environment configuration, including: configuration variables, resources, add-ons, and git based deployment.
4
5
 
@@ -8,10 +8,9 @@ module HerokuBuilder
8
8
  def push(name, branch, environment)
9
9
  remote_branch = "heroku-#{environment}"
10
10
  if remote_exists?(remote_branch)
11
- git.add_remote(remote_branch, app(name)['git_url'])
11
+ git.add_remote(remote_branch, App.new.app(name)['git_url'])
12
12
  end
13
13
  git.push(remote_branch, "#{branch}:master")
14
- puts "remotes: #{git.remotes.map(&:name)}"
15
14
  end
16
15
 
17
16
  def git
@@ -45,16 +45,22 @@ module HerokuBuilder
45
45
  update_app(name)
46
46
 
47
47
  # set env variables
48
- update_env_vars(name, environment)
48
+ unless config['config_vars'].nil? || config['config_vars'].empty?
49
+ update_env_vars(name, environment)
50
+ end
49
51
 
50
52
  # deploy code
51
53
  run_deployment(name, environment)
52
54
 
53
55
  # find or create addons
54
- update_addons(name, environment)
56
+ unless config['addons'].nil? || config['addons'].empty?
57
+ update_addons(name, environment)
58
+ end
55
59
 
56
60
  # find or create resource
57
- update_resources(name, environment)
61
+ unless config['resources'].nil? || config['resources'].empty?
62
+ update_resources(name, environment)
63
+ end
58
64
  end
59
65
  end
60
66
  end
@@ -1,3 +1,3 @@
1
1
  module HerokuBuilder
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'platform-api'
2
+ require 'git'
2
3
 
3
4
  require 'heroku_builder/version'
4
5
  require 'heroku_builder/base'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Vanderhoof