ufo 3.5.6 → 3.5.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bd34e1498279908085f391c5496c1aa8081447be4e00df457aa44ad12ad0b3a
4
- data.tar.gz: b607ce6631b39b7db8a92f5457bace98ad8efed5df552c3aa7bbf496b351d1a5
3
+ metadata.gz: a92a1e685c66f63854b015ea62abb3be7f54c3af1b2cf68ca9505b414fe8978c
4
+ data.tar.gz: 125983ffbc6084d126f05a684763b1ceeab38730eb2ea8cb778e662dbe9db7b7
5
5
  SHA512:
6
- metadata.gz: 654a0b5f161aaf4e31c13f3737d3b4aeb1592935235149f222f7019862f6b7d72fb412a8fc5eb8bfd692b06619a0db48b2c647fc4565b986e95f5e9f7818cb4e
7
- data.tar.gz: 5d166cd32cc455b49ebc919415d945efde71198b00028509120c95bbe49d2eb79fb7e271148db2ddc9dcc99b9c194f45727eb10fdd12a26637f6ab514fdd937f
6
+ metadata.gz: 912de3bf9af0666505868a5d7d3f12b42834a1a6116cf5175e37f6d169d9e67a2a2a264f42aebee194680522f76737f286751412d693e4825a9c53b50ffd1e23
7
+ data.tar.gz: 14118ce031dccaf4488c4762b582f53ad7d6cf8c304ddff81b1f2305e3bce88f83ba4c55085306e1366c9cef5e21b3d982d2a9dad969269b0f01695aae456b98
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [3.5.7]
7
+ - display aws ecs run-task command
8
+ - fix ufo init in help menu
9
+
6
10
  ## [3.5.6]
7
11
  - upgrade ufo with cli-template, link cli help to website reference help
8
12
 
data/README.md CHANGED
@@ -2,15 +2,13 @@
2
2
  <img src="http://ufoships.com/img/logos/ufo-logo.png" />
3
3
  </div>
4
4
 
5
- # Ufo - Easy Way to Build and Ship Docker to AWS ECS
5
+ # Ufo - ECS Deployment Tool
6
6
 
7
7
  [![CircleCI](https://circleci.com/gh/tongueroo/ufo.svg?style=svg)](https://circleci.com/gh/tongueroo/ufo)
8
8
  [![Join the chat at https://gitter.im/tongueroo/ufo](https://badges.gitter.im/tongueroo/ufo.svg)](https://gitter.im/tongueroo/ufo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
9
9
  [![Support](https://img.shields.io/badge/get-support-blue.svg)](https://boltops.com?utm_source=badge&utm_medium=badge&utm_campaign=ufo)
10
10
 
11
- Ufo is a tool that makes building and shipping Docker images to [AWS ECS](https://aws.amazon.com/ecs/) super easy.
12
-
13
- The main command is `ufo ship`. Here's summary of what it does:
11
+ Ufo is an tool that eases the building and deployment of docker images to [AWS ECS](https://aws.amazon.com/ecs/). The main command is `ufo ship`. Here's summary of what it does:
14
12
 
15
13
  1. Builds a docker image. 
16
14
  2. Generates and registers the ECS template definition. 
@@ -11,7 +11,7 @@ reference: true
11
11
 
12
12
  Generates a script that can be eval to setup auto-completion.
13
13
 
14
- To use, add the following to your ~/.bashrc or ~/.profile
14
+ To use, add the following to your `~/.bashrc` or `~/.profile`
15
15
 
16
16
  eval $(ufo completion_script)
17
17
 
@@ -9,7 +9,7 @@ base:
9
9
  # defaults when an new ECS service is created by ufo ship
10
10
 
11
11
  development:
12
- # cluster: dev
12
+ # cluster: development
13
13
  # When you have AWS_PROFILE set to one of these values, ufo will switch to the desired
14
14
  # environment. This prevents you from switching AWS_PROFILE, forgetting to
15
15
  # also switch UFO_ENV, and accidentally deploying to production vs development.
@@ -18,6 +18,6 @@ development:
18
18
  # - dev_profile2
19
19
 
20
20
  production:
21
- # cluster: prod
21
+ # cluster: production
22
22
  # aws_profiles:
23
23
  # - prod_profile
@@ -20,7 +20,7 @@ module Ufo
20
20
  Init.cli_options.each do |args|
21
21
  option *args
22
22
  end
23
- register(Init, "init", "new", "Set up initial ufo files.")
23
+ register(Init, "init", "init", "Set up initial ufo files.")
24
24
 
25
25
  # common options to deploy. ship, and ships command
26
26
  ship_options = Proc.new do
@@ -65,11 +65,26 @@ module Ufo
65
65
  end
66
66
 
67
67
  def upsert_gitignore
68
- return unless File.exist?(".gitignore")
69
- append_to_file ".gitignore", <<-EOL
68
+ text =<<-EOL
70
69
  .ufo/output
71
70
  .ufo/data
72
71
  EOL
72
+ if File.exist?(".gitignore")
73
+ append_to_file ".gitignore", text
74
+ else
75
+ create_file ".gitignore", text
76
+ end
77
+ end
78
+
79
+ def upsert_dockerignore
80
+ text =<<-EOL
81
+ .ufo
82
+ EOL
83
+ if File.exist?(".dockerignore")
84
+ append_to_file ".dockerignore", text
85
+ else
86
+ create_file ".dockerignore", text
87
+ end
73
88
  end
74
89
 
75
90
  def user_message
@@ -21,6 +21,8 @@ module Ufo
21
21
 
22
22
  return unless @options[:launch_type] == "fargate"
23
23
  # execution role arn required for fargate
24
+ puts "For fargate ECS tasks an ECS Task Execution IAM Role is required. "
25
+ puts "More details here: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html"
24
26
  print "Please provide a execution role arn role for the ecs task: "
25
27
  @execution_role_arn = $stdin.gets.strip
26
28
  end
@@ -44,6 +44,8 @@ module Ufo
44
44
  end
45
45
 
46
46
  def run_task(options)
47
+ puts "Equivalent aws cli command:"
48
+ puts " aws ecs run-task --cluster #{@cluster} --task-definition #{options[:task_definition]}".colorize(:green)
47
49
  ecs.run_task(options)
48
50
  rescue Aws::ECS::Errors::ClientException => e
49
51
  if e.message =~ /ECS was unable to assume the role/
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "3.5.6"
2
+ VERSION = "3.5.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.6
4
+ version: 3.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-07 00:00:00.000000000 Z
11
+ date: 2018-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudwatchlogs