docker-utils 0.1.32 → 0.1.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/share/scripts/define-service +3 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 651e5fc28bd876efed849ddebabe0f7761a27543
4
- data.tar.gz: cf96eea4d82fd9c223c953b9ef755c1b9fd525ad
3
+ metadata.gz: 657fc060cc0403e0ae51c9323c6847474288aee9
4
+ data.tar.gz: a44c61a4b4a6a1df723bad549b56ed932682c36d
5
5
  SHA512:
6
- metadata.gz: c258bdb9f5c87cbc1dd575ac525ac16c68fed3aa629bb64e1e1a813451e77cd5a6fb4f14e5e39dbe3b8be4844e1bb2f2fad232783d44e06d7b7ab36791a69ca5
7
- data.tar.gz: d4c8b8c2325bebf7dd65a8122647b63e73e8f4478e39add172468b24d05f7b8517dd92e0a09ccca6a6d248769fa9a83b04fa2ff61d07f1ab44c16511ad4cc068
6
+ metadata.gz: 4d404bacfe5afe14f01d317405c9ba62dca50bd678e91ff60b599a78f4c630c7f12463bfab4c612c9e059d21ed073eb076293bd6f338f30b0f838ac184fcb13d
7
+ data.tar.gz: a1ddd22c325b7252e6d95bc3fbb9ba10d446ea1ea6052254fb080a5970c829f58c3d132a45c16e1d79b0a1858ab4ff7f7878cd9d7b56857e4bffe2fb7f7d5bbf
@@ -5,12 +5,9 @@ echo -n "defining container service '$1'... "
5
5
  image_repo=$1
6
6
  shift
7
7
 
8
- image_tag=$(echo "${image_repo}" | cut -d':' -f 2)
9
- if [ -n "${image_tag}" ]; then
10
- image_repo=$(echo "${image_repo}" | cut -d':' -f 1)
11
- else
12
- image_tag="latest"
13
- fi
8
+ image_tag=$(echo "${image_repo}" | tr ':' ' ' | awk '{print $2;}')
9
+ image_repo=$(echo "${image_repo}" | tr ':' ' ' | awk '{print $1;}')
10
+ image_tag=${image_tag:-latest}
14
11
 
15
12
  image_name=$(echo "${image_repo}" | tr '/' ' ' | awk '{print $NF;}')
16
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.32
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levi Aul