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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/broadside/ecs/ecs_deploy.rb +1 -1
- data/lib/broadside/gli/commands.rb +9 -11
- data/lib/broadside/version.rb +1 -1
- 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: 1b8d5f4714ee0e882c844840a53ed6b2778af35c
|
4
|
+
data.tar.gz: 3e303fe224bf2d2148485fa2bac50fb8c5e06ddd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1e6d8cade3765f83784e19f137aaeeb36bf54a6997d3d1fcc1c629cbcdabea65b35a39742b1f23ddf310b5e4f37f59f645e9a40999b91eda327ca2cbe1514b8
|
7
|
+
data.tar.gz: 425a349b2eb7929dab4a60ac098115d9ef991c3f3602222aa97623464c1cc6fe25fed41f2a95f7ddb6c5bd04f8e69881d18ed37f9f763a734cfd406dac001dad
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
data/lib/broadside/version.rb
CHANGED