pvcglue 0.9.5 → 0.9.6

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: caa789ef881164fe12fd0afa7ea98479ab5a70e4
4
- data.tar.gz: 1cb97f3b5a5d13984e2b135652a722e149bf63bb
3
+ metadata.gz: 4b8a9d12da99f44bee4aaab27c630d3fe33dcf60
4
+ data.tar.gz: 54b10ab3d16c7f94d19daaa8f8206c4cb8334b6b
5
5
  SHA512:
6
- metadata.gz: f22dc9c678ca9edf6ffb7b88183e7e047334f60e9d83f8084c08f55350b70e3424350f05de2d86c0193c3b17eeb3a816b5fc0a88db3df46459a8290fe6403ff9
7
- data.tar.gz: 32480c58b7d164a511b6c5727d23d22f2a6b0c7059d0f6a125baf9f59acfcce278a67922a654fc8d9c253291f6363839a14eed13b5c95f709f6e2cd7eb50a2b3
6
+ metadata.gz: 5fbf3c40a08a31db2be774103000b1ff6ce583c20c3b196e686aaebf9795d6e36ec52e646f4fe7e26cda635cc7327827d845b3196576bf6cbbc8b1d715b93312
7
+ data.tar.gz: 165801fa6504e4fb3313c55fedfe73017965f540f8bb7eabdfc5ce77a6834e9947ed980d3ac95649724dc39cd2714fc3496cb0bf6f2b00443eb55ab19cbbf665
@@ -198,6 +198,7 @@ module Pvcglue
198
198
  # puts '-'*80
199
199
  # puts "---> render_template(template=#{template}, file_name=#{file_name}"
200
200
  # Pvcglue.logger.debug { "render_template(template=#{template}, file_name=#{file_name}" }
201
+ Pvcglue.logger.debug { "render_template(template_file_name=#{Pvcglue.template_file_name(template)}" }
201
202
  data = Tilt.new(Pvcglue.template_file_name(template)).render
202
203
  if file_name
203
204
  File.write(file_name, data)
@@ -10,6 +10,7 @@ module Pvcglue
10
10
  connection.write_to_file_from_template(user_name, 'web.bashrc.erb', "/home/#{user_name}/.bashrc")
11
11
 
12
12
  connection.run_get_stdout!(user_name, '', 'gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3')
13
+ # connection.run_get_stdout!(user_name, '', 'gpg --keyserver hkp://176.9.51.79 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3')
13
14
  # Do it again, the first time only sets things up, and does not import the keys
14
15
  connection.run!(user_name, '', '\curl -sSL https://get.rvm.io | bash -s stable --with-default-gems=bundler')
15
16
 
@@ -29,8 +29,13 @@ namespace :sidekiq do
29
29
  if host.properties.minion_name == '<%= minion_name %>'
30
30
  begin
31
31
  execute('<%= minion.quiet_all_workers_cmd %>')
32
- rescue SSHKit::Runner::ExecuteError => e
33
- puts e.message
32
+ rescue SSHKit::Command::Failed => e
33
+ if e.message =~ /No main process to kill/
34
+ puts 'No workers to quiet, moving on.'
35
+ else
36
+ puts e.inspect
37
+ raise
38
+ end
34
39
  end
35
40
  end
36
41
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Pvcglue
2
- VERSION = '0.9.5'
2
+ VERSION = '0.9.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pvcglue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - T. Andrew Lyric
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler