Sha256: d8075ac8eae55b5c26c172e500d5697f4feffaa2253939d15035e9549371176e

Contents?: true

Size: 1.54 KB

Versions: 45

Compression:

Stored size: 1.54 KB

Contents

Sets a current service to remember so you do not have to provide the service name all the time.  This shortens the commands

    ufo ship demo-web # before
    ufo current --service demo-web
    ufo ship # after

The state information is written to `.ufo/current`.

## Examples

### summary

    ufo current --service demo-web --env-extra 1
    ufo current --service demo-web --env-extra 1 --services demo-web demo-worker
    ufo current --service demo-web --env-extra ''
    ufo current --service demo-web
    ufo current --env-extra '1'

### service

To set current service:

    ufo current --service demo-web
    ufo current --service demo-worker
    ufo current --service demo-web

To view current service, run `ufo current` without any arguments.

    $ ufo current
    Current service: demo-web

To remove current service:

    ufo current --service ''

### env-extra

To also set a current `UFO_ENV_EXTRA`.

    ufo current --env-extra 1

The extra env setting will be reflected:

    $ ufo current
    Current service: demo-web
    Current env_extra: 1

The `UFO_ENV_EXTRA` variable takes higher precedence than the current setting in the saved file.

To unset:

    ufo current --env-extra ''

### services

The ufo ships command builds one docker image and deploys it to multiple ECS services. You can also have ufo remember what services to use with the current command.

    ufo current --services demo-web demo-worker
    ufo ships # will depoy to both demo-web and demo-worker

### rm all

To remove all current settings use the `--rm` option.

    ufo current --rm

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ufo-5.0.7 lib/ufo/help/current.md
ufo-5.0.6 lib/ufo/help/current.md
ufo-5.0.5 lib/ufo/help/current.md
ufo-5.0.4 lib/ufo/help/current.md
ufo-5.0.3 lib/ufo/help/current.md
ufo-5.0.2 lib/ufo/help/current.md
ufo-5.0.1 lib/ufo/help/current.md
ufo-5.0.0 lib/ufo/help/current.md
ufo-4.6.3 lib/ufo/help/current.md
ufo-4.6.2 lib/ufo/help/current.md
ufo-4.6.1 lib/ufo/help/current.md
ufo-4.6.0 lib/ufo/help/current.md
ufo-4.5.11 lib/ufo/help/current.md
ufo-4.5.10 lib/ufo/help/current.md
ufo-4.5.9 lib/ufo/help/current.md
ufo-4.5.8 lib/ufo/help/current.md
ufo-4.5.7 lib/ufo/help/current.md
ufo-4.5.6 lib/ufo/help/current.md
ufo-4.5.5 lib/ufo/help/current.md
ufo-4.5.4 lib/ufo/help/current.md