rat_deployer 0.1.0 → 0.1.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: 04f3379e90ccb366f14476db843ecf1de3402e76
4
- data.tar.gz: d51452ccb0aa807cf75073af755c7bb370ef18e8
3
+ metadata.gz: b70810b89cd248d2743394bee60594eb9f805b43
4
+ data.tar.gz: 01c8aaf1c41c572a3247e908cae364b04ab774a9
5
5
  SHA512:
6
- metadata.gz: ab2a49f572c862f2d5463ffe334e9ecedbbc6099f7f02372e0cacdc53dba3ed43a19079df611b6f903622b650bbd608cc6cde83d8253b4103f8ae4837e03fda4
7
- data.tar.gz: 94da799880fbe19c640a813b9236c369a778d18712988f741637108aeb815560c9d304474a2e7481ae78d766c67263f01d4fc1ed2150df573b06f7b5ea3f15be
6
+ metadata.gz: 3e740ed48bc6b98d4943ea86ac77bc385a71594879819078062f5f9277db074b8b1fb286568b69033e5b23349567d87d4833343934fd1705f9f6fb52831d4b2c
7
+ data.tar.gz: 62fe85d2ba81954e2b6ce5ddac32c87d67db0cc54d453002228021e44a56e575858526d622c92596cca194c54a43f4d2fe0c118d03fca2aaa41c395b1522f4ef
@@ -10,8 +10,11 @@ module RatDeployer
10
10
 
11
11
  desc 'update [SERVICES...]', 'Update images for given services'
12
12
  def update(*services)
13
- build(*services)
14
- push(*services)
13
+ services.each do |svc|
14
+ put_heading "Updating image for service #{svc}"
15
+ do_build(svc)
16
+ do_push(svc)
17
+ end
15
18
  end
16
19
 
17
20
  desc 'build [SERVICES...]', 'Build images for given services'
@@ -27,7 +30,7 @@ module RatDeployer
27
30
  private
28
31
 
29
32
  def do_build(service)
30
- put_heading "Building service #{service}"
33
+ put_heading "Building image for service #{service}"
31
34
 
32
35
  ensure_image_source(service)
33
36
 
@@ -35,6 +38,8 @@ module RatDeployer
35
38
  end
36
39
 
37
40
  def do_push(service)
41
+ put_heading "Pusinhg image for service #{service}"
42
+
38
43
  run "docker push #{image_name(service)}"
39
44
  end
40
45
 
@@ -34,7 +34,7 @@ module RatDeployer
34
34
  project_name = RatDeployer::Config.all.fetch('project_name')
35
35
 
36
36
  flags = [
37
- "-f config/base.yml",
37
+ "-f config/default.yml",
38
38
  "-f config/#{env}.yml",
39
39
  "-p #{project_name}_#{env}"
40
40
  ].join(' ')
@@ -13,7 +13,7 @@ module RatDeployer
13
13
 
14
14
  def self.for_env(e = env)
15
15
  confs = all.fetch('environments')
16
- default_conf = confs['default'] || {}
16
+ default_conf = confs['default'] || confs['base'] || {}
17
17
  env_conf = confs.fetch(e)
18
18
 
19
19
  default_conf.deep_merge env_conf
@@ -1,3 +1,3 @@
1
1
  module RatDeployer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rat_deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Oga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-01 00:00:00.000000000 Z
11
+ date: 2016-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor