miq_utilities 0.3.1.6 → 0.3.1.7

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
  SHA256:
3
- metadata.gz: 8f953689ae2fb50e9b12c089e6919119e97370b1f7e8bf30839f7ad9b216519e
4
- data.tar.gz: b8d8c992cb9ceeff359addfd4810352bd8f97c2c7364657eb86f4fae2128064f
3
+ metadata.gz: b0ec1723addeb0f0f4b9f4025779b5e2fd135f175a9ddbe8899eee659263e3f7
4
+ data.tar.gz: b6a0b2fbdb8492e33418d4041dd9b7b430f6abf395215079a62f2e322bc9bd98
5
5
  SHA512:
6
- metadata.gz: fec9183bd980ae3367af5b4a14a5cc39d8cf4da52a21db4ab49567c7390cd3fd80a49641da9bcb59fd7b1c3e30b25dd2b3bb1d476f861295d059375f19cace86
7
- data.tar.gz: c266cc61749dcf1726288af1754d4a3a7f0d685ed56d84e8f0adec397bb89f509b486203a65d472795e66529bc1b62aea36b2aed2bffde88fc64f26e2abc53f5
6
+ metadata.gz: efb8648690997955a74c44b15c115f316c73360ca46c2b844c893f4b11a4b76b1bc7b27804040ca29de67e07b884271ec4602c2f9ed00b8fbe9f18165c16ebe4
7
+ data.tar.gz: 87b76057f1605fa5f646390ee2ad0114022016748bef437a86cef11554fe1445dbca4772f55c42f59a289297ee48c0c66d806aa9b6f65876b781e7c167106def
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- miq_utilities (0.3.1.5)
4
+ miq_utilities (0.3.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -18,7 +18,7 @@ require 'slack-notifier'
18
18
  class NotificationClass
19
19
  def notify(event_level:, event_message:, email_to: nil, email_from: nil, signature: nil, webhookurl: nil, subjecttype: nil)
20
20
  @logger = LoggingClass.new(self.class.to_s)
21
- request_or_vm = $evm.root.attributes['miq_request_id'] || $evm.root.attributes['vm']
21
+ request_or_vm = $evm.root.attributes['miq_provision_id'] || $evm.root.attributes['vm']
22
22
  user = $evm.root['user'].attributes['name']
23
23
  userid = $evm.root['user'].attributes['userid']
24
24
  message = "Request ID/VM Name:<#{request_or_vm}>\n User:<#{user}> ID:<#{userid}>\n" + event_message
@@ -13,7 +13,7 @@ require_relative 'logging.rb'
13
13
 
14
14
  # This wrapper class is used to run ssh commands on linux machines
15
15
  class SshClass
16
- def ssh_run(ipaddr, script, linux_user = nil, linux_password = nil)
16
+ def ssh_run(script, ipaddr, linux_user = nil, linux_password = nil)
17
17
  @logger = LoggingClass.new("#{self.class}:(#{__method__})")
18
18
  linux_user ||= 'root'
19
19
  linux_password ||= $evm.object.decrypt('linux_password').to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiqUtilities
4
- VERSION = '0.3.1.6'
4
+ VERSION = '0.3.1.7'
5
5
  end
@@ -12,13 +12,13 @@ require 'logging.rb'
12
12
 
13
13
  # Wrapper class to interact with winrm
14
14
  class WinrmClass
15
- def winrm_run(ps_script, host, user = nil , password = nil)
15
+ def winrm_run(script, host, user = nil , password = nil)
16
16
  @logger = LoggingClass.new('WinRM')
17
17
  user ||= 'administrator'
18
18
  password ||= $evm.object.decrypt('win_password').to_s
19
19
  value = ''
20
20
  ps1 = <<~PS_SCRIPT
21
- #{ps_script}
21
+ #{script}
22
22
  PS_SCRIPT
23
23
 
24
24
  opts = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miq_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.6
4
+ version: 0.3.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron McCatty