bb_deploy 0.0.1.3 → 0.0.1.4
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 +4 -4
- data/README.md +2 -3
- data/lib/bb_deploy/config.rb +1 -1
- data/lib/bb_deploy/deployer.rb +4 -3
- data/lib/bb_deploy/git.rb +2 -1
- data/lib/bb_deploy/heroku.rb +2 -3
- data/lib/bb_deploy/logger.rb +0 -3
- data/lib/tasks/deploy.rake +0 -2
- metadata +58 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8241aef295ed6a9daab2ed280bf3d3c0fb3476d6
|
4
|
+
data.tar.gz: ad6a59e169339ab06490f8fad2f11e30515d5eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22acc844d134708557de46ebdbe6e037fecc2d4565e435f1982a3a54e79dab518c918fcce64b4ed1655c692c4a887916035f91e8bd5c4fde6a3e52871b1c7250
|
7
|
+
data.tar.gz: 0fd2b196d9505f67b211504a812f8e52390877b72e8055928799c8622eb1e43c36ecd06a9d2be8e0db7d66fc373da49f49915a0dde816917668c657f7765ffe0
|
data/README.md
CHANGED
@@ -4,10 +4,9 @@ This is a gem for deploying Rails services to Heroku via Rake task. In order to
|
|
4
4
|
|
5
5
|
- Add the `bb_deploy` gem to your Gemfile
|
6
6
|
|
7
|
-
-
|
7
|
+
- Add `config/deploy.yml` to your application: http://bit.ly/2bUKVhY
|
8
8
|
|
9
|
-
- Add
|
10
|
-
`require File.expand_path('../config/deploy', __FILE__)`
|
9
|
+
- Add this line to your Rakefile: load "#{Gem::Specification.find_by_name('bb_deploy').gem_dir}/lib/tasks/deploy.rake"
|
11
10
|
|
12
11
|
- Make sure that your machine has all the necessary Git/Heroku keys, and that your endpoints are set up correctly.
|
13
12
|
|
data/lib/bb_deploy/config.rb
CHANGED
@@ -21,7 +21,7 @@ module BbDeploy
|
|
21
21
|
def configure_from_yaml(filepath)
|
22
22
|
options = YAML.load_file(filepath)
|
23
23
|
configure do |config|
|
24
|
-
%
|
24
|
+
%w(application_name application_urls deployment_channel engineering_channel).each do |key|
|
25
25
|
config.send("#{key}=", options[key])
|
26
26
|
end
|
27
27
|
end
|
data/lib/bb_deploy/deployer.rb
CHANGED
@@ -116,10 +116,11 @@ class BbDeploy::Deployer
|
|
116
116
|
sleep 2 # because removing maint mode takes a couple seconds to propagate
|
117
117
|
host_and_path =
|
118
118
|
case phase
|
119
|
-
when 'qa'; BbDeploy::Config.application_urls[
|
120
|
-
when 'staging'; BbDeploy::Config.application_urls[
|
121
|
-
when 'production'; BbDeploy::Config.application_urls[
|
119
|
+
when 'qa'; BbDeploy::Config.application_urls['qa']
|
120
|
+
when 'staging'; BbDeploy::Config.application_urls['staging']
|
121
|
+
when 'production'; BbDeploy::Config.application_urls['production']
|
122
122
|
end
|
123
|
+
|
123
124
|
puts "Opening the site for inspection ..."
|
124
125
|
BbDeploy::Task.run("open https://#{host_and_path}")
|
125
126
|
end
|
data/lib/bb_deploy/git.rb
CHANGED
data/lib/bb_deploy/heroku.rb
CHANGED
@@ -5,10 +5,9 @@ module BbDeploy::Heroku
|
|
5
5
|
def get_variable(phase, var_name)
|
6
6
|
@heroku_env_vars ||= {}
|
7
7
|
return @heroku_env_vars[var_name] if @heroku_env_vars[var_name]
|
8
|
-
if token = heroku_run("heroku config:get #{var_name} --remote #{phase}").
|
8
|
+
if token = heroku_run("heroku config:get #{var_name} --remote #{phase}").present?
|
9
|
+
token = token.chomp
|
9
10
|
@heroku_env_vars[var_name] = token.split.last
|
10
|
-
else
|
11
|
-
raise "Ack! Thbbft!!! Can't find #{var_name} on heroku #{phase}."
|
12
11
|
end
|
13
12
|
@heroku_env_vars[var_name]
|
14
13
|
end
|
data/lib/bb_deploy/logger.rb
CHANGED
data/lib/tasks/deploy.rake
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bb_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter van Wesep
|
@@ -9,7 +9,63 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-09-01 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: highline
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: le
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: slack-notifier
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
13
69
|
description:
|
14
70
|
email: peter@brightbytes.net
|
15
71
|
executables: []
|