kontena-cli 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 960104670b01a01904b3c6c59b8a34a54fa00d4b
4
- data.tar.gz: 818f20aebc2d1774d80b631ccc8cb6c30e393a5e
3
+ metadata.gz: 8d2886c09f3faeaa711f9fb89e078cd06dd9b035
4
+ data.tar.gz: 0c012c5a9c66d1f600f74ec65d477395cd394e0b
5
5
  SHA512:
6
- metadata.gz: 9f23afc68dbe36ff30c0f0f7e93ae6880f2dbd455ba357a9b7d58b3ca55683a325704fc650e0a984055ab2f4fff1a5bbc7268074c3e0c48de169974decf0c86e
7
- data.tar.gz: f30c99956e19d094efa2e718c9607c8e58245211e1ad2f12d369e4ecf5f41e6f6dceeac651ef81174b64fc5d7b5290fdef5beeae0f64a0d9b0e1b7641aaabd9e
6
+ metadata.gz: 9799fc52f4c464b8f9adea3e77abe4d4bafb00fadbd205643ab32015c2711010650ac559fe37c275327d4b2a86e48304dad1e09d557d8670750306b85b86fa64
7
+ data.tar.gz: 311c7b76896963a5d1aca5d17d8c460da41b660377d9914e20e48ea1b712d837c1c4dd450480a3858d949f37ddcac73e07e4f02250bfa00751357a04e62dd615
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.0
1
+ 0.11.1
@@ -26,11 +26,11 @@ module Kontena::Cli::Apps
26
26
 
27
27
 
28
28
  def build_docker_image(name, path, dockerfile, no_cache=false)
29
- if no_cache
30
- ret = system("docker build -t #{name} -f #{dockerfile} --no-cache #{path}")
31
- else
32
- ret = system("docker build -t #{name} -f #{dockerfile} #{path}")
33
- end
29
+ cmd = ["docker build -t #{name}"]
30
+ cmd << "-f #{File.join(File.expand_path(path), dockerfile)}" if dockerfile != "Dockerfile"
31
+ cmd << "--no-cache" if no_cache
32
+ cmd << path
33
+ ret = system(cmd.join(' '))
34
34
  abort("Failed to build image #{name.colorize(:cyan)}") unless ret
35
35
  ret
36
36
  end
@@ -83,7 +83,7 @@ module Kontena
83
83
  puts " secrets: "
84
84
  service['secrets'].to_a.each do |s|
85
85
  puts " - secret: #{s['secret']}"
86
- puts " secret: #{s['name']}"
86
+ puts " name: #{s['name']}"
87
87
  puts " type: #{s['type']}"
88
88
  end
89
89
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler