heroku_builder 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/heroku_builder/deployment.rb +1 -2
- data/lib/heroku_builder/service.rb +9 -3
- data/lib/heroku_builder/version.rb +1 -1
- data/lib/heroku_builder.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d004817b02f37030dab30bc7f9b2029dae7f4d7b
|
4
|
+
data.tar.gz: b0d847744d4b20260b62fecdb011da9209379570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
56
|
+
unless config['addons'].nil? || config['addons'].empty?
|
57
|
+
update_addons(name, environment)
|
58
|
+
end
|
55
59
|
|
56
60
|
# find or create resource
|
57
|
-
|
61
|
+
unless config['resources'].nil? || config['resources'].empty?
|
62
|
+
update_resources(name, environment)
|
63
|
+
end
|
58
64
|
end
|
59
65
|
end
|
60
66
|
end
|
data/lib/heroku_builder.rb
CHANGED