dual_burner 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +3 -1
- data/lib/dual_burner/configuration.rb +2 -2
- data/lib/dual_burner/runner.rb +8 -3
- data/lib/dual_burner/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7dbe1637a1f1600e292900b7f14e08fd2b50927
|
4
|
+
data.tar.gz: b2290b3f03c7731627ab03b914843868d23b1a79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a820476c0628ff669590f26f021ee305f682bc4b55849d3e3930c6ae548f1766b2d890ecf3e43d45278fdbd4b394a01b850775a12054b8cedee9c0644cd67fe2
|
7
|
+
data.tar.gz: 4f7a647f9bd73e50db2802a55e04d4dfe259c13d28f167bb13ef762bc79a591d28b62e4a18c37882db5474fbd5b150d2c893419e18adcd0d01d8f766f729b80d
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## 0.3.1
|
4
|
+
|
5
|
+
* Adds --no-interactive option for disalbing interactive mode.
|
6
|
+
|
7
|
+
## 0.3.0
|
8
|
+
|
9
|
+
* Replace `heroku joins` with `git ls-remote` before deployment.
|
10
|
+
|
11
|
+
## 0.2.0
|
12
|
+
|
13
|
+
* Support `heroku joins` before all deployments.
|
14
|
+
* Provide fail message when not all deployments successful.
|
15
|
+
|
16
|
+
## 0.1.0
|
17
|
+
|
18
|
+
* Initial version that supports deployment to multiple applications.
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
Cause a two burner stove is better than one!
|
4
4
|
|
5
|
+
[![Circle CI](https://circleci.com/gh/blueapron/dual_burner/tree/master.svg?style=shield)](https://circleci.com/gh/blueapron/dual_burner/tree/master)
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
@@ -60,7 +62,7 @@ These are the possible configurations for your application.
|
|
60
62
|
| ----------------|:-------------:| ----- |
|
61
63
|
| remote_url | yes | The git target for deploy and release information. |
|
62
64
|
| name | yes | The presentation name for the app. |
|
63
|
-
| color |
|
65
|
+
| color | yes | The presentation color for display. |
|
64
66
|
| heroku_app_name | no | The heroku app name. Needed only for Heroku related commands i.e. `dual_burner config_set`. |
|
65
67
|
|
66
68
|
## Git Commands
|
data/lib/dual_burner/runner.rb
CHANGED
@@ -6,6 +6,7 @@ module DualBurner
|
|
6
6
|
ENV_DESC = 'The cluster environment.'.freeze unless defined?(ENV_DESC)
|
7
7
|
GIT_DESC = 'The git reference to deploy.'.freeze unless defined?(GIT_DESC)
|
8
8
|
HEROKU_KEY_DESC = 'The key to set on the Heroku app.'.freeze unless defined?(HEROKU_KEY_DESC)
|
9
|
+
INTERACTIVE_DESC = 'Enable or disable interactive mode'.freeze unless defined?(INTERACTIVE_DESC)
|
9
10
|
|
10
11
|
desc 'last_release', 'Finds the HEAD git revision for all applications in cluster <ENV>.'
|
11
12
|
method_option :env, aliases: '-e', type: :string, required: true, desc: ENV_DESC
|
@@ -21,10 +22,14 @@ module DualBurner
|
|
21
22
|
method_option :env, aliases: '-e', type: :string, required: true, desc: ENV_DESC
|
22
23
|
method_option :config, aliases: '-c', type: :string, optional: true, desc: CONFIG_DESC
|
23
24
|
method_option :git_reference, aliases: '-g', default: 'master', type: :string, optional: true, desc: GIT_DESC
|
25
|
+
method_option :interactive, default: true, type: :boolean, optional: true, desc: INTERACTIVE_DESC
|
24
26
|
def deploy
|
25
27
|
::DualBurner::Commands::Deployer.new(
|
26
28
|
env: options.fetch('env'),
|
27
|
-
configuration: get_configuration_instance(
|
29
|
+
configuration: get_configuration_instance(
|
30
|
+
deploy_file: options['config'],
|
31
|
+
interactive: options['interactive']
|
32
|
+
)
|
28
33
|
).deploy(git_reference: options['git_reference'])
|
29
34
|
end
|
30
35
|
|
@@ -73,10 +78,10 @@ module DualBurner
|
|
73
78
|
|
74
79
|
protected
|
75
80
|
|
76
|
-
def get_configuration_instance(deploy_file: nil)
|
81
|
+
def get_configuration_instance(deploy_file: nil, interactive: true)
|
77
82
|
deploy_file ||= File.join(Dir.getwd, 'config', 'dual_burner.yml')
|
78
83
|
|
79
|
-
c = DualBurner::Configuration.new
|
84
|
+
c = DualBurner::Configuration.new(interactive)
|
80
85
|
c.deploy_file = deploy_file
|
81
86
|
c
|
82
87
|
end
|
data/lib/dual_burner/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dual_burner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blue Apron Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- ".rspec"
|
141
141
|
- ".rubocop.yml"
|
142
142
|
- ".ruby-version"
|
143
|
+
- CHANGELOG.md
|
143
144
|
- Gemfile
|
144
145
|
- README.md
|
145
146
|
- Rakefile
|