shards 1.1.1 → 1.1.2

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: 04e94a12604d93f46937a5ad4f133295a19d6b5d
4
- data.tar.gz: 1756072e402d29ffe485feb979f09729276f0563
3
+ metadata.gz: fc139d258548d37dc5d72b403881d10e92166d0a
4
+ data.tar.gz: d1b175af07905c50d35b783f5ab6f8303916d7e7
5
5
  SHA512:
6
- metadata.gz: 0a8b7d955ba86722b16ed49c16cd7e60169ae5f06c0ef046ebd0a292d60f84f062170bbe68ac53bdf662cc7b404208d411586ed57ae683f46673daffa5e69cf1
7
- data.tar.gz: 95bd7f3d81e68cba4ff52f67f403ec3fa07253ba772891b20765d2b59d34bc9d88f1f780be4300952fdd1ac3d306d328d202836823364a25a00c06da7f3476db
6
+ metadata.gz: 5f838e50da8313a598eba2b228f3bea9206584785b2dbe91aaf10e45f83d3e47fa4885bba1937537333aa9d512bbc9606c44f5c63e6e3447a13fb110b8774bdb
7
+ data.tar.gz: 8c34937630e3455c848e6c03cb2548339188683284ee8e9901d6a22761344638a5d6ea0836d37e461453eff3b6e6edaa26b684fd314cd2cb68b8491f586d46a4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shards (1.1.1)
4
+ shards (1.1.2)
5
5
  aws-sdk-route53 (~> 1.9)
6
6
  dotenv (~> 2.4)
7
7
  git (~> 1.4)
@@ -95,4 +95,4 @@ DEPENDENCIES
95
95
  shards!
96
96
 
97
97
  BUNDLED WITH
98
- 1.16.2
98
+ 1.16.3
@@ -148,4 +148,3 @@ Shards::Stage:
148
148
  add "Shard: #{shard.name}"
149
149
  add "DB: #{shard.db.name}"
150
150
 
151
-
data/lib/shards/repo.rb CHANGED
@@ -5,7 +5,7 @@ module Shards
5
5
  class Repo
6
6
 
7
7
  @@times = 0
8
- attr_accessor :git, :client, :root
8
+ attr_accessor :git, :message, :root
9
9
 
10
10
  def initialize
11
11
  @root=ENV['ENGINEERING_ROOT_PATH']
@@ -27,12 +27,12 @@ module Shards
27
27
 
28
28
  def autocommit
29
29
  git.add all: true
30
- git.commit message
30
+ git.commit autocommit_message
31
31
  git.push 'origin', live_branch
32
32
  end
33
33
 
34
- def message
35
- "[AUTOCOMMIT] Added shard for #{client}"
34
+ def autocommit_message
35
+ "[AUTOCOMMIT] #{message}"
36
36
  end
37
37
 
38
38
  def diff
@@ -1,3 +1,3 @@
1
1
  module Shards
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -142,8 +142,10 @@ module Shards
142
142
  end
143
143
 
144
144
  def commit_changes
145
- config.repo.client = client
146
- puts config.repo.autocommit
145
+ config.repo.message = "Added shard in #{location} for #{client}"
146
+ config.repo.autocommit
147
+ puts step['message']
148
+ puts config.repo.message
147
149
  end
148
150
 
149
151
  def create_database
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shards
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego PL