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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d014299917c5a75ba2f9e5699bdbb23472bbeee4
4
- data.tar.gz: 59b2d41808fc55ee2fb653160a36965c70f6c6cd
3
+ metadata.gz: 22433ffd343707ed3a2456d032877dfda0900b05
4
+ data.tar.gz: 95eb5a06f247926e3b6d3b60f96b5365acc09a9d
5
5
  SHA512:
6
- metadata.gz: 6503c54bb272ed7db10154d0de453ea7bbf9d12a1673170921a66f7b95de3d50701151f92748b3ecb728e53e254530f3a9b3a71717e4dbe2c3da7af531b61c3d
7
- data.tar.gz: f6264b1f3c31ef1b61fd4af27b1ea3ff7ea50623171207dc19031d157b1d42dc595c9c1c6d02d4d1bcb92ee61f322716c82faaa376dcf4f64e6f77a8dce22d25
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 !log_data.empty? && log_data != @config['cheftacular']['repositories'][@options['role']]['not_a_migration_message']
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, __method__.to_s, "RAILS_ENV=TRUE_ENVIRONMENT #{ @config['bundle_command'] } exec", modes, nodes)
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 }
@@ -1,5 +1,5 @@
1
1
  class Cheftacular
2
2
  #major_version.minor_version.bugfixes
3
- VERSION = "2.15.4"
3
+ VERSION = "2.15.5"
4
4
  RUBY_VERSION = "2.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheftacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.4
4
+ version: 2.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Alridge