cheftacular 2.15.4 → 2.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cheftacular/actions/migrate.rb +2 -2
- data/lib/cheftacular/actions/run.rb +2 -4
- data/lib/cheftacular/version.rb +1 -1
- 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: 22433ffd343707ed3a2456d032877dfda0900b05
|
|
4
|
+
data.tar.gz: 95eb5a06f247926e3b6d3b60f96b5365acc09a9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faa926b73b4a585783b9784d72a38cb378a12d62e053bb1dc5c3a21396c4c75837d69300ff00a25dbc4e19357f1b853695bfdb122719a8fcbf199ddc87669b71
|
|
7
|
+
data.tar.gz: a53336f5407bf065eb71d1406aa380535d89d4af449867299440b6c8b27a286f8b6d980cd48154889e1197ed6d5e370ec144b925cdc638d7dd3563f1ff09ae78
|
|
@@ -31,7 +31,7 @@ class Cheftacular
|
|
|
31
31
|
if logs_bag_hash["#{ nodes.first.name }-#{ __method__ }"]['text'].empty? ||
|
|
32
32
|
( cheftacular['repositories'][options['role']].has_key?('not_a_migration_message') && logs_bag_hash["#{ nodes.first.name }-#{ __method__ }"]['text'] == cheftacular['repositories'][options['role']]['not_a_migration_message'] )
|
|
33
33
|
|
|
34
|
-
puts("Nothing to migrate for #{ options['role'] }...")
|
|
34
|
+
puts("Nothing to migrate for #{ @options['role'] }...")
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
@config['helper'].send_log_bag_hash_slack_notification(logs_bag_hash, __method__, 'Failing migration detected, please fix this and deploy again, exiting...')
|
|
@@ -39,7 +39,7 @@ class Cheftacular
|
|
|
39
39
|
@options['run_migration_already'] = true
|
|
40
40
|
|
|
41
41
|
#restart the servers again after a deploy with a migration just in case
|
|
42
|
-
if !
|
|
42
|
+
if !logs_bag_hash["#{ nodes.first.name }-#{ __method__ }"]['text'].empty? && log_data != @config['cheftacular']['repositories'][@options['role']]['not_a_migration_message']
|
|
43
43
|
@config['auditor'].notify_slack_on_completion("migrate run completed on #{ nodes.map { |node| node.name }.join(', ') }\n") if @config['cheftacular']['auditing']
|
|
44
44
|
|
|
45
45
|
@config['action'].deploy
|
|
@@ -35,8 +35,8 @@ class Cheftacular
|
|
|
35
35
|
@config['auditor'].notify_slack_on_completion("run #{ command } completed on #{ nodes.map { |node| node.name }.join(', ') }\n") if @config['cheftacular']['auditing']
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
def run_ruby_on_rails command, modes=['normal_output'], nodes=[]
|
|
39
|
-
run_command(command,
|
|
38
|
+
def run_ruby_on_rails command, descriptor='run_ruby_on_rails', modes=['normal_output'], nodes=[]
|
|
39
|
+
run_command(command, descriptor, "RAILS_ENV=TRUE_ENVIRONMENT #{ @config['bundle_command'] } exec", modes, nodes)
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def run_nodejs command
|
|
@@ -82,8 +82,6 @@ class Cheftacular
|
|
|
82
82
|
final_command << @config['helper'].sudo(ip_address) if modes.include?('sudo')
|
|
83
83
|
final_command << ( executable.gsub('TRUE_ENVIRONMENT', true_env) + ' ' + command )
|
|
84
84
|
|
|
85
|
-
puts "#{ base_exec } \"#{ final_command.join(' && ') }\" > /dev/tty"
|
|
86
|
-
|
|
87
85
|
log_output = `#{ base_exec } "#{ final_command.join(' && ') }" > /dev/tty`
|
|
88
86
|
|
|
89
87
|
logs_bag_hash["#{ n.name }-#{ descriptor }"] = { "text" => log_output.scrub_pretty_text.force_encoding('UTF-8'), "timestamp" => Time.now.strftime("%Y%m%d%H%M%S"), "exit_status" => $?.to_i }
|
data/lib/cheftacular/version.rb
CHANGED