broadside 3.0.6 → 3.0.7

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: 4d47c9c89f13bf617c34dce01f63f4ce4c6f880c
4
- data.tar.gz: 958f75c93c3c14d4ee31b4f1d2414e2f152df360
3
+ metadata.gz: 1b8d5f4714ee0e882c844840a53ed6b2778af35c
4
+ data.tar.gz: 3e303fe224bf2d2148485fa2bac50fb8c5e06ddd
5
5
  SHA512:
6
- metadata.gz: 35c4297593f18933c788b1052c02bf7dbd111adc713fc76ca76aef8a095a034d7f1c391661de157737abe0ee9ffa7c3d962d4e550bb8064b9c1c89d439dff3f7
7
- data.tar.gz: 534205c168aa0281a9d68224474d1b258bc7d68f5149d6b9e6d6b3d2d618ebce3d7bcd92096f73f6a90cc02ff3d9d11bc35859439570f4c9fcd90dbfcead95aa
6
+ metadata.gz: c1e6d8cade3765f83784e19f137aaeeb36bf54a6997d3d1fcc1c629cbcdabea65b35a39742b1f23ddf310b5e4f37f59f645e9a40999b91eda327ca2cbe1514b8
7
+ data.tar.gz: 425a349b2eb7929dab4a60ac098115d9ef991c3f3602222aa97623464c1cc6fe25fed41f2a95f7ddb6c5bd04f8e69881d18ed37f9f763a734cfd406dac001dad
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 3.0.7
2
+ - `--tag` option for `bootstrap` also was named `--optional` (whoops)
3
+
1
4
  # 3.0.6
2
5
  - `--tag` option is optional while bootstrapping if you already have a configured `task_definition`
3
6
 
@@ -28,7 +28,7 @@ module Broadside
28
28
  info "Task definition for #{family} already exists."
29
29
  else
30
30
  raise ConfigurationError, "No :task_definition_config for #{family}" unless @target.task_definition_config
31
- raise ConfigurationError, 'Bootstrapping a task_definition requires a --tag option' unless @target.tag
31
+ raise ConfigurationError, 'Bootstrapping a task_definition requires a :tag for the image' unless @target.tag
32
32
  info "Creating an initial task definition for '#{family}' from the config..."
33
33
 
34
34
  EcsManager.ecs.register_task_definition(
@@ -22,13 +22,14 @@ def add_command_flags(cmd)
22
22
  add_target_flag(cmd)
23
23
  end
24
24
 
25
+ def add_deploy_flags(cmd)
26
+ add_tag_flag(cmd)
27
+ add_target_flag(cmd)
28
+ end
29
+
25
30
  desc 'Bootstrap your service and task definition from the configured definition.'
26
31
  command :bootstrap do |bootstrap|
27
- bootstrap.desc 'Optionally configured tag - without it you cannot bootstrap a task_definition'
28
- bootstrap.arg_name 'TAG'
29
- bootstrap.flag 'tag', :optional
30
-
31
- add_target_flag(bootstrap)
32
+ add_deploy_flags(bootstrap)
32
33
 
33
34
  bootstrap.action do |_, options, _|
34
35
  Broadside::EcsDeploy.new(options).bootstrap
@@ -60,8 +61,7 @@ command :run do |run|
60
61
  run.arg_name 'COMMAND'
61
62
  run.flag [:command], type: Array
62
63
 
63
- add_tag_flag(run)
64
- add_target_flag(run)
64
+ add_deploy_flags(run)
65
65
 
66
66
  run.action do |_, options, _|
67
67
  EcsDeploy.new(options).run_commands([options[:command]], started_by: 'run')
@@ -104,8 +104,7 @@ desc 'Deploy your application.'
104
104
  command :deploy do |d|
105
105
  d.desc 'Deploys WITHOUT running predeploy commands'
106
106
  d.command :short do |short|
107
- add_tag_flag(short)
108
- add_target_flag(short)
107
+ add_deploy_flags(short)
109
108
 
110
109
  short.action do |_, options, _|
111
110
  Broadside::EcsDeploy.new(options).short
@@ -114,8 +113,7 @@ command :deploy do |d|
114
113
 
115
114
  d.desc 'Deploys WITH running predeploy commands'
116
115
  d.command :full do |full|
117
- add_tag_flag(full)
118
- add_target_flag(full)
116
+ add_deploy_flags(full)
119
117
 
120
118
  full.action do |_, options, _|
121
119
  Broadside::EcsDeploy.new(options).full
@@ -1,3 +1,3 @@
1
1
  module Broadside
2
- VERSION = '3.0.6'.freeze
2
+ VERSION = '3.0.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: broadside
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Leung