manageiq-smartstate 0.5.7 → 0.5.8
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 17b37f4ab83cd03d58b45b02fdeaf8bff3d9c994f7a75b2807bf2ab3334ddf1d
|
4
|
+
data.tar.gz: 30fc42e24da1123a3affb75b781e7629fd98e156c9349cbb733a23cdfced8f53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22ef45df273e3a8d491d3ad99e0e8e279b35cd9b4b62293c2aaecc80ef8df6de724c71badaf2c966a3f597b8fa82c4be423bb24faa4c79e4b4857318ad18118b
|
7
|
+
data.tar.gz: d4ea9bfb29b732a621534471cc3d83da6924aa95318f9a2618a9c7dc96be063538f5eb01c1e7a598609650b89a6409aba57b671aa320b31f64a1304efb39c46b
|
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
# ManageIQ::Smartstate
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/manageiq-smartstate.svg)](http://badge.fury.io/rb/manageiq-smartstate)
|
4
|
-
[![Build Status](https://travis-ci.
|
4
|
+
[![Build Status](https://travis-ci.com/ManageIQ/manageiq-smartstate.svg)](https://travis-ci.com/ManageIQ/manageiq-smartstate)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-smartstate.svg)](https://codeclimate.com/github/ManageIQ/manageiq-smartstate)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-smartstate/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-smartstate/coverage)
|
7
|
-
[![Dependency Status](https://gemnasium.com/ManageIQ/manageiq-smartstate.svg)](https://gemnasium.com/ManageIQ/manageiq-smartstate)
|
8
7
|
[![Security](https://hakiri.io/github/ManageIQ/manageiq-smartstate/master.svg)](https://hakiri.io/github/ManageIQ/manageiq-smartstate/master)
|
9
8
|
|
10
9
|
[![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq-smartstate?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
@@ -72,9 +72,10 @@ class MD5deep
|
|
72
72
|
|
73
73
|
def process_each_glob_file(file_name)
|
74
74
|
FindClassMethods.glob(file_name, @fs) do |f|
|
75
|
-
#
|
76
|
-
# when scanning Win VMs from Linux where the path returned from
|
77
|
-
#
|
75
|
+
# Prepending @drive_letter to the file is a work-around for issues
|
76
|
+
# when scanning Win VMs from Linux where the path returned from glob
|
77
|
+
# does not include the drive letter.
|
78
|
+
f = File.join(@drive_letter, f)
|
78
79
|
processFile(File.dirname(f), File.basename(f), @xml.root)
|
79
80
|
end
|
80
81
|
rescue => err
|
@@ -98,7 +99,7 @@ class MD5deep
|
|
98
99
|
|
99
100
|
def processDir(path, x, xmlNode)
|
100
101
|
if x != "." && x != ".."
|
101
|
-
currFile = File.join(
|
102
|
+
currFile = File.join(path, x)
|
102
103
|
|
103
104
|
begin
|
104
105
|
if File.directory?(currFile)
|
@@ -117,7 +118,7 @@ class MD5deep
|
|
117
118
|
|
118
119
|
def process_dir_as_file(path, x, xml_node)
|
119
120
|
if x != "." && x != ".."
|
120
|
-
curr_dir = File.join(
|
121
|
+
curr_dir = File.join(path, x)
|
121
122
|
if isDir?(curr_dir)
|
122
123
|
xml_file_node = xml_node.add_element("file", "name" => x, "fqname" => curr_dir)
|
123
124
|
stat_hash = {}
|
@@ -129,7 +130,7 @@ class MD5deep
|
|
129
130
|
|
130
131
|
def processFile(path, x, xmlNode)
|
131
132
|
if (@opts.exclude.include?(x) == false) && x[0..0] != "$"
|
132
|
-
currFile = File.join(
|
133
|
+
currFile = File.join(path, x)
|
133
134
|
|
134
135
|
begin
|
135
136
|
# unless File.directory?(currFile) then
|
data/lib/miq_tempfile.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'delegate'
|
2
|
+
require 'tempfile'
|
3
|
+
|
4
|
+
class MiqTempfile < DelegateClass(Tempfile)
|
5
|
+
# TODO: share this definition with appliance console code.
|
6
|
+
MIQ_TMP_DIR = '/var/www/miq_tmp'.freeze
|
7
|
+
|
8
|
+
def initialize(basename, *options)
|
9
|
+
if File.directory?(MIQ_TMP_DIR)
|
10
|
+
super(Tempfile.new(basename, MIQ_TMP_DIR, *options))
|
11
|
+
else
|
12
|
+
super(Tempfile.new(basename, *options))
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-smartstate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: azure-armrest
|
@@ -483,7 +483,6 @@ files:
|
|
483
483
|
- lib/fs/xfs/short_form_directory_entry.rb
|
484
484
|
- lib/fs/xfs/short_form_header.rb
|
485
485
|
- lib/fs/xfs/superblock.rb
|
486
|
-
- lib/lib/tasks/azure.rake
|
487
486
|
- lib/manageiq-smartstate.rb
|
488
487
|
- lib/manageiq/smartstate.rb
|
489
488
|
- lib/manageiq/smartstate/util.rb
|
@@ -539,6 +538,8 @@ files:
|
|
539
538
|
- lib/metadata/util/win32/remote-registry.rb
|
540
539
|
- lib/metadata/util/win32/system_path_win.rb
|
541
540
|
- lib/metadata/util/win32/versioninfo.rb
|
541
|
+
- lib/miq_tempfile.rb
|
542
|
+
- lib/tasks/azure.rake
|
542
543
|
- log/.gitkeep
|
543
544
|
- manageiq-smartstate.gemspec
|
544
545
|
homepage: https://github.com/ManageIQ/manageiq-smartstate
|
@@ -560,8 +561,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
560
561
|
- !ruby/object:Gem::Version
|
561
562
|
version: '0'
|
562
563
|
requirements: []
|
563
|
-
|
564
|
-
rubygems_version: 2.6.12
|
564
|
+
rubygems_version: 3.1.2
|
565
565
|
signing_key:
|
566
566
|
specification_version: 4
|
567
567
|
summary: ManageIQ SmartState Analysis
|