capistrano_multiconfig_parallel 0.6.1 → 0.6.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: 0362dba10934410958b8d42d03252ee5b8126c22
4
- data.tar.gz: e407a9d74a97ea09c2a80e5222334204dc106b86
3
+ metadata.gz: 2b470f4de93b37af27d50688a0727461af844e4e
4
+ data.tar.gz: c270b935db211232b3150c225db50eff605c0b03
5
5
  SHA512:
6
- metadata.gz: 87a31611fb4dc5f10e115e7acb8bd1d580c9afbedb62c0c908d3a2b6be55cedbf3e936a6cffa44ecf5f4925c3a7f903b8536ff0ec3d6765c1cfd131a870d988b
7
- data.tar.gz: fea6af3d812cf4ebdbfefee6084d50a640d3dc9d45a713a689e46d8f25bef422c50961c68b12ed4680a6c46ec5445cee67efac1cab15ecdcdb72bc961bb5e94c
6
+ metadata.gz: 4bba067afc7d3e6728ae82eb23a0b2f0b5701ca81f5a9ed876d821b9ec41d7cbd620f5afddf953faaacbc156b632d9305e0865ca336b73d221c5a2aeec8bf445
7
+ data.tar.gz: 5dcab7ebf63b73e79b89e8f4301ac126860a4b369178e99eba7af512cb7bdc492b68e022ce8726840d85834255c1c6863a0fd764cf5ce58c444a346dc9f8e99d
@@ -89,28 +89,6 @@ module CapistranoMulticonfigParallel
89
89
  @rake_tasks ||= []
90
90
  end
91
91
 
92
- def last_staging_tag
93
- last_tag_matching('staging-*')
94
- end
95
-
96
- def last_tag_matching(pattern)
97
- # search for most recent (chronologically) tag matching the passed pattern, then get the name of that tag.
98
- last_tag = `#{cd_working_directory} && git describe --exact-match --tags --match='#{pattern}' $(git log --tags='#{pattern}*' -n1 --pretty='%h')`.chomp
99
- debug("LAST TAG is #{last_tag}") if debug_enabled?
100
- last_tag == '' ? nil : last_tag
101
- end
102
-
103
- def staging_was_tagged?
104
- begin
105
- current_sha = `#{cd_working_directory} && git log --pretty=format:%H HEAD -1`
106
- debug("curent SHA is #{current_sha}") if debug_enabled?
107
- last_staging_tag_sha = last_staging_tag ? `#{cd_working_directory} && git log --pretty=format:%H #{last_staging_tag} -1` : nil
108
- debug("LAST TAGGING SHA is #{last_staging_tag_sha}") if debug_enabled?
109
- last_staging_tag_sha == current_sha
110
- rescue
111
- return false
112
- end
113
- end
114
92
 
115
93
  def cd_working_directory
116
94
  "cd #{CapistranoMulticonfigParallel.detect_root.to_s}"
@@ -148,7 +126,7 @@ module CapistranoMulticonfigParallel
148
126
 
149
127
  def handle_subscription(message)
150
128
  if message_is_about_a_task?(message)
151
- if @env_name == 'staging' && @manager.can_tag_staging? && staging_was_tagged? && has_executed_task?(CapistranoMulticonfigParallel::GITFLOW_TAG_STAGING_TASK)
129
+ if @env_name == 'staging' && @manager.can_tag_staging? && has_executed_task?(CapistranoMulticonfigParallel::GITFLOW_TAG_STAGING_TASK)
152
130
  @manager.dispatch_new_job(@job.merge('env' => 'production'))
153
131
  end
154
132
  save_tasks_to_be_executed(message)
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 6
11
- TINY = 1
11
+ TINY = 2
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada