minke 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2NlNTg2Mjc1ZWZjNjA2NzNhM2ZhZDEyN2E4MmZiMDQxOTNkZjI4OQ==
4
+ OTAwNjcwYzI2NzYxNTNiOTMxMzY1Y2I3YjNjZTAxMjUzZTc0ODc1OA==
5
5
  data.tar.gz: !binary |-
6
- OWQzYzc5NGQ5MzNkOTljZWM2NWY3MGYyNWQ1ZTZkM2ViY2M4ZjQ2YQ==
6
+ NjIwMjk4MjVjNGNlZjVhMjYxMzQxMDFiMzJkMDZhNzYzNDEwYzY1YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDUzODA5MjUyODQ3OGI5OTA3NzJlMzk0ZmFkYjEzZDk0MzEwZGNlMDk4Yjhh
10
- ZGQ2OTlhNWNiY2FjODM5MDNjOGJkZjdmMDdmNzNjZDI4OGQ3OTE1NmZmZTUz
11
- M2E2MzQ4MjZkNDQxZDNmOWJlZjY0MzZjZTM1YTNjMDFhYmMzODE=
9
+ NGU3Mzc0ZDg5YTk2ODllMjg2MDUwNWY4NGVmYzY2YjYxNGYzZGMxNWFjOWE2
10
+ ZDkzMDI5NzZiODBiNGViNTZiNzdjNjYxOGRmZWQ5MmFhMDk3MDU4NjgxNTIw
11
+ MGFlN2E2MGIxZDQxMDk2Mzk0ZjYyMzI1OTk5Mjk1ZmM1ZTE1Y2E=
12
12
  data.tar.gz: !binary |-
13
- NmZkMDczNmJlNGNhNTQ1MzI3MTg1ZjFmM2FhYTlmZmI1NGFjMjAwN2ZmMmIx
14
- NmZlMTdmM2JkMmU1ZGZkNjM3NDk0MzM0NzcyN2IwMjBhNjMwMzM3YTM3N2Qy
15
- ZWIwMjM1ZDc1NmUwNjE4OThmZjdhNjBkZGVkNWVmZjZlNzAzMTk=
13
+ MDQ3M2RhNmVkODhhOGY1MzFjNGFlY2JlZDVhZmIxZGQ3Y2U4NjkwYzAzN2E3
14
+ OTA0MmEyMWJlZWM0OWYxZjhlNzI1OGFlM2VmNzcwMjA2ZmExZDAwMDM2MDAw
15
+ NTNmZWJhMzdkMDU3YmEwYmFkNmYzNGJhMDk1MDE3Y2E3MjlhNDY=
@@ -96,6 +96,16 @@ module Minke
96
96
  return container, return_code
97
97
  end
98
98
 
99
+ def self.delete_container container
100
+ if container != nil
101
+ begin
102
+ container.delete()
103
+ rescue => e
104
+ puts "Unable to delete container"
105
+ end
106
+ end
107
+ end
108
+
99
109
  def self.tag_and_push args
100
110
  image = self.find_image "#{args['go']['application_name']}:latest"
101
111
  image.tag('repo' => "#{args['docker_registry']['namespace']}/#{args['go']['application_name']}", 'force' => true) unless image.info["RepoTags"].include? "#{args['docker_registry']['namespace']}/#{args['go']['application_name']}:latest"
@@ -10,7 +10,7 @@ namespace :app do
10
10
  puts "Go get"
11
11
  container, ret = Minke::GoDocker.create_and_run_container config['docker'], ['go','get','-t','-v','./...']
12
12
  ensure
13
- container.delete()
13
+ Minke::GoDocker.delete_container container
14
14
  end
15
15
 
16
16
  begin
@@ -20,7 +20,7 @@ namespace :app do
20
20
 
21
21
  raise Exception, 'Error running command' unless ret == 0
22
22
  ensure
23
- container.delete()
23
+ Minke::GoDocker.delete_container container
24
24
  end
25
25
  end
26
26
 
@@ -36,7 +36,7 @@ namespace :app do
36
36
 
37
37
  raise Exception, 'Error running command' unless ret == 0
38
38
  ensure
39
- container.delete()
39
+ Minke::GoDocker.delete_container container
40
40
  end
41
41
  end
42
42
 
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson