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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b49df89d634d3ca0c8fe45b12f43309b757e1fdf
4
- data.tar.gz: 0c552354fbfb4dda6474d75a0fd3f2361cb651b1
3
+ metadata.gz: a7dbe1637a1f1600e292900b7f14e08fd2b50927
4
+ data.tar.gz: b2290b3f03c7731627ab03b914843868d23b1a79
5
5
  SHA512:
6
- metadata.gz: e78945c728157e374466a0488c9e361c1e9cedfceab4674ccd3a63cf368521ce5aab6b9121bba739e46e2d5cd30e1e7a559fd06c5ac5753e8551c8af6eb07375
7
- data.tar.gz: ff4b58dff18a06b39dac2096bc8f3d29cf97930beef3f9c75bcdcb36247d6f87f46409a664f5de1a8d23f7b6327f6cf4addae5d1c48602be3466cbeb144a3274
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 | no | The presentation color for display. |
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
@@ -10,8 +10,8 @@ module DualBurner
10
10
 
11
11
  alias interactive? interactive
12
12
 
13
- def initialize
14
- @interactive = true
13
+ def initialize(interactive = true)
14
+ @interactive = interactive
15
15
  end
16
16
  end
17
17
  end
@@ -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(deploy_file: options['config'])
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
@@ -1,3 +1,3 @@
1
1
  module DualBurner
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
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.0
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-07 00:00:00.000000000 Z
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