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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/settings/format_methods.yaml +0 -1
- data/lib/shards/repo.rb +4 -4
- data/lib/shards/version.rb +1 -1
- data/lib/shards/workflow/base.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc139d258548d37dc5d72b403881d10e92166d0a
|
4
|
+
data.tar.gz: d1b175af07905c50d35b783f5ab6f8303916d7e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f838e50da8313a598eba2b228f3bea9206584785b2dbe91aaf10e45f83d3e47fa4885bba1937537333aa9d512bbc9606c44f5c63e6e3447a13fb110b8774bdb
|
7
|
+
data.tar.gz: 8c34937630e3455c848e6c03cb2548339188683284ee8e9901d6a22761344638a5d6ea0836d37e461453eff3b6e6edaa26b684fd314cd2cb68b8491f586d46a4
|
data/Gemfile.lock
CHANGED
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, :
|
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
|
30
|
+
git.commit autocommit_message
|
31
31
|
git.push 'origin', live_branch
|
32
32
|
end
|
33
33
|
|
34
|
-
def
|
35
|
-
"[AUTOCOMMIT]
|
34
|
+
def autocommit_message
|
35
|
+
"[AUTOCOMMIT] #{message}"
|
36
36
|
end
|
37
37
|
|
38
38
|
def diff
|
data/lib/shards/version.rb
CHANGED
data/lib/shards/workflow/base.rb
CHANGED
@@ -142,8 +142,10 @@ module Shards
|
|
142
142
|
end
|
143
143
|
|
144
144
|
def commit_changes
|
145
|
-
config.repo.
|
146
|
-
|
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
|