ufo 2.0.3 → 2.1.0

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
  SHA1:
3
- metadata.gz: 8350618d437b189a1331609c80641170530d0cd1
4
- data.tar.gz: aa3c8b0c2699d209e31dfbe23e4ac623c955b06b
3
+ metadata.gz: 978bde116e3ed5f9f431e9c1fcf537cac792a341
4
+ data.tar.gz: f36b2b946950b237fa9d3989375c29e347008936
5
5
  SHA512:
6
- metadata.gz: f08a954dc92b3b019412aef4218824e790d6486d8d25dc80ebf157ea1d5a9e169a1d377c0ad9568e2409c5e2f834f31ccae045689549d970b3e2f572697b0fae
7
- data.tar.gz: a78095ecfca8bf72ff93bbd65f0bf5609766dbfb5e6b432edd4390c8aa09f194ab20c6733eed9ca0716dea1d8cc86bf09c03d838eaecfd6aa2033a66318fba8d
6
+ metadata.gz: 3b8fe84e115acf44778b2b18ad01f6d8d21a1c00c94d2136d17f3e7cbbc48ebaf6ab68f3e9813a0f443df803a81a7fe6b5eabf592da6c9ff8294f5f87f060b10
7
+ data.tar.gz: 972be5346c59654e822f260ee6aa307cc715938aa43248353b2c8f08702c0b88aa1807dd62cd874e698871f1631c7dcef449893d217596dcf1672a71daa882fd
@@ -3,6 +3,9 @@
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
+ ## [2.1.0]
7
+ * ufo init: only require --app and --image option
8
+
6
9
  ## [2.0.3]
7
10
  * add aws log group as a comment in the starter project
8
11
 
data/README.md CHANGED
@@ -44,7 +44,7 @@ To quickly demonstrate how simple it is to use ufo we will use an example app fr
44
44
  brew cask install boltopslabs/software/bolts
45
45
  git clone https:///github.com/tongueroo/hi.git
46
46
  cd hi
47
- ufo init --app=hi --cluster=stag --image=tongueroo/hi
47
+ ufo init --app=hi --image=tongueroo/hi
48
48
  ufo ship hi-web-stag
49
49
  ```
50
50
 
@@ -8,13 +8,13 @@ Let's run the command in our newly clone project.
8
8
  ```sh
9
9
  git clone https://github.com/tongueroo/hi.git
10
10
  cd hi
11
- ufo init --app=hi --env prod --cluster=prod --image=tongueroo/hi
11
+ ufo init --app=hi --image=tongueroo/hi
12
12
  ```
13
13
 
14
14
  You should see output similiar to this:
15
15
 
16
16
  ```
17
- $ ufo init --app=hi --env prod --cluster=prod --image=tongueroo/hi
17
+ $ ufo init --app=hi --image=tongueroo/hi
18
18
  Setting up ufo project...
19
19
  created: ./bin/deploy
20
20
  created: ./Dockerfile
@@ -2,7 +2,7 @@
2
2
  title: ufo init
3
3
  ---
4
4
 
5
- The `ufo init` command provides a way to quickly setup a project to be ufo ready. It creates a ufo folder with all the starter supporting files in order to use ufo. This page demonstrates how to use `ufo init`. The command has a few required options `--app`, `--env`, `--cluster`, and `--image`.
5
+ The `ufo init` command provides a way to quickly setup a project to be ufo ready. It creates a ufo folder with all the starter supporting files in order to use ufo. This page demonstrates how to use `ufo init`. The command requires these options: `--app` and `--image`.
6
6
 
7
7
  For this example we will use [tongueroo/hi](https://github.com/tongueroo/hi) which is a small test sinatra app.
8
8
 
@@ -11,7 +11,7 @@ Let's run the command in our newly clone project.
11
11
  ```sh
12
12
  git clone https://github.com/tongueroo/hi.git
13
13
  cd hi
14
- ufo init --app=hi --env prod --cluster=prod --image=tongueroo/hi
14
+ ufo init --app=hi --image=tongueroo/hi
15
15
  ```
16
16
 
17
17
  You should see output similiar to this:
@@ -8,14 +8,14 @@ In a hurry? No sweat! Here's a quick start to using ufo that takes only a few mi
8
8
  gem install ufo
9
9
  git clone https:///github.com/tongueroo/hi.git
10
10
  cd hi
11
- ufo init --app=hi --env prod --cluster=prod --image=tongueroo/hi
11
+ ufo init --app=hi --image=tongueroo/hi
12
12
  ufo ship hi-web
13
13
  ```
14
14
 
15
15
  You should see something similar to this:
16
16
 
17
17
  ```
18
- $ ufo init --app=hi --env prod --cluster=prod --image=tongueroo/hi
18
+ $ ufo init --app=hi --image=tongueroo/hi
19
19
  Setting up ufo project...
20
20
  created: ./bin/deploy
21
21
  created: ./Dockerfile
@@ -4,4 +4,4 @@
4
4
  # be overridden.
5
5
 
6
6
  # Only build one docker image and deploys it to multiple ECS services
7
- ufo ships <%= @app %>-{web,clock,worker} --cluster <%= @cluster %>
7
+ ufo ships <%= @app %>-{web,clock,worker}
@@ -19,7 +19,6 @@ module Ufo
19
19
  subcommand "tasks", Tasks
20
20
 
21
21
  desc "init", "setup initial ufo files"
22
- option :cluster, type: :string, required: true, desc: "ECS cluster name. Example: default"
23
22
  option :image, type: :string, required: true, desc: "Docker image name without the tag. Example: tongueroo/hi. Configures ufo/settings.yml"
24
23
  option :app, type: :string, required: true, desc: "App name. Preferably one word. Used in the generated ufo/task_definitions.rb."
25
24
  long_desc Help.init
@@ -6,7 +6,7 @@ module Ufo
6
6
  <<-EOL
7
7
  Examples:
8
8
 
9
- $ ufo init --app=hi --cluster=stag --image=tongueroo/hi
9
+ $ ufo init --app=hi --image=tongueroo/hi
10
10
 
11
11
  The image should not include the tag since the tag is generated upon a `ufo ship`.
12
12
  EOL
@@ -1,8 +1,6 @@
1
1
  require 'colorize'
2
2
  require 'erb'
3
3
 
4
- # quick test:
5
- # rm -rf ufo ; /Users/tung/src/tongueroo/ufo/bin/ufo init --cluster default2 --image tongueroo/ruby ; cat ufo/settings.yml
6
4
  module Ufo
7
5
  class Init
8
6
  def initialize(options = {})
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "2.0.3"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -18,7 +18,7 @@ module Helpers
18
18
 
19
19
  def create_starter_project_fixture
20
20
  FileUtils.rm_rf("spec/fixtures/hi")
21
- execute("bin/ufo init --cluster prod --image tongueroo/hi --project-root spec/fixtures/hi --app hi")
21
+ execute("bin/ufo init --app hi --image tongueroo/hi --project-root spec/fixtures/hi")
22
22
  end
23
23
  end
24
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen