manageiq-appliance_console 5.0.0 → 5.0.1

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
  SHA256:
3
- metadata.gz: 14864c1acff849d128dd1b259fe53a85857fd4bfaeed115a0b7588532af9e467
4
- data.tar.gz: c0173714a5f51b0e91557bae10244c390748c3ce05fa58341d6390c22fa2ab4e
3
+ metadata.gz: 794afb4e9972783bd83a8ca135242452c225562680380c80aa1f40ff78c05d6a
4
+ data.tar.gz: 81cd28c1eeb628e7b7d02eedc53f4188b61a83e7aa8594193af018170476df6a
5
5
  SHA512:
6
- metadata.gz: 82c2b74c4b642b6ad4dcf8b68e71a2a686c3b40616551cbf7f341471b0b99bccd1fe231588bc312cb6ae17a0cff74907a4038655758db2d58944844c66c0a43e
7
- data.tar.gz: 782d3539d1e642980db364bcef4144b6dc8ed5aebce5a7d4352878e15775ff1d43770fdeb25b40731a97d9ab46aaf98b4ece51e66506971895c08020a99965ca
6
+ metadata.gz: 72c20ebd526ad7689fadbe44d9037d9204ece79beb536439ce517abbb6d91080f7d1870c5858e84ecf66a9c19c0b6a0fdfeb43e11feda37ae820031d7058c08d
7
+ data.tar.gz: 166462b2b52d1fb72335016c4bc79bb228190d9b9bc459530925918adbab0833ffd0a429cf369054c703b86c4ba740e56c4ae0a4be8d29367cffa5d612b1068d
@@ -4,15 +4,13 @@ exclude_paths:
4
4
  - "**.xml"
5
5
  - "**.yaml"
6
6
  - "**.yml"
7
- - "locale/"
8
- - "spec/"
9
- - "tools/"
7
+ - locale/
8
+ - spec/
9
+ - tools/
10
10
  engines:
11
11
  brakeman:
12
- # very slow :sad_panda:
13
12
  enabled: false
14
13
  bundler-audit:
15
- # requires Gemfile.lock
16
14
  enabled: false
17
15
  csslint:
18
16
  enabled: false
@@ -24,21 +22,20 @@ engines:
24
22
  - javascript
25
23
  eslint:
26
24
  enabled: false
27
- channel: "eslint-3"
25
+ channel: eslint-3
28
26
  fixme:
29
- # let's enable later
30
27
  enabled: false
31
28
  markdownlint:
32
- # let's enable later
33
29
  enabled: false
34
30
  rubocop:
35
31
  enabled: true
36
- config: '.rubocop_cc.yml'
32
+ config: ".rubocop_cc.yml"
33
+ channel: rubocop-0-69
37
34
  prepare:
38
35
  fetch:
39
- - url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml"
36
+ - url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
40
37
  path: ".rubocop_base.yml"
41
- - url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml"
38
+ - url: https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml
42
39
  path: ".rubocop_cc_base.yml"
43
40
  ratings:
44
41
  paths:
@@ -34,8 +34,9 @@ module ApplianceConsole
34
34
  create_volume_group
35
35
  create_logical_volume_to_fill_volume_group
36
36
  format_logical_volume
37
- mount_disk
38
37
  update_fstab
38
+ lazy_unmount_mount_point
39
+ mount_disk
39
40
  end
40
41
 
41
42
  private
@@ -69,30 +70,32 @@ module ApplianceConsole
69
70
  AwesomeSpawn.run!("mkfs.#{filesystem_type} #{logical_volume.path}")
70
71
  end
71
72
 
73
+ def lazy_unmount_mount_point
74
+ AwesomeSpawn.run!("umount", :params => ["-l", mount_point.to_s]) if File.file?("/proc/mounts") && File.read("/proc/mounts").include?(" #{mount_point} ")
75
+ end
76
+
72
77
  def mount_disk
73
78
  if mount_point.symlink?
74
79
  FileUtils.rm_rf(mount_point)
75
80
  FileUtils.mkdir_p(mount_point)
76
81
  end
77
- AwesomeSpawn.run!("mount", :params => {"-t" => filesystem_type,
78
- nil => [logical_volume.path, mount_point]})
82
+ AwesomeSpawn.run!("mount", :params => ["-a"])
79
83
  end
80
84
 
81
85
  def update_fstab
82
86
  fstab = LinuxAdmin::FSTab.instance
83
- return if fstab.entries.find { |e| e.mount_point == mount_point }
87
+ entry = fstab.entries.find { |e| e.mount_point == mount_point.to_s } || LinuxAdmin::FSTabEntry.new
88
+ fstab.entries.delete(entry)
84
89
 
85
- entry = LinuxAdmin::FSTabEntry.new(
86
- :device => logical_volume.path,
87
- :mount_point => mount_point,
88
- :fs_type => filesystem_type,
89
- :mount_options => "rw,noatime",
90
- :dumpable => 0,
91
- :fsck_order => 0
92
- )
90
+ entry.device = logical_volume_path
91
+ entry.mount_point = mount_point
92
+ entry.fs_type = filesystem_type
93
+ entry.mount_options = "rw,noatime"
94
+ entry.dumpable = 0
95
+ entry.fsck_order = 0
93
96
 
94
97
  fstab.entries << entry
95
- fstab.write! # Test this more, whitespace is removed
98
+ fstab.write!
96
99
  end
97
100
  end
98
101
  end
@@ -3,7 +3,7 @@ module ApplianceConsole
3
3
  class TempStorageConfiguration
4
4
  TEMP_DISK_FILESYSTEM_TYPE = "xfs".freeze
5
5
  TEMP_DISK_MOUNT_POINT = Pathname.new("/var/www/miq_tmp").freeze
6
- TEMP_DISK_MOUNT_OPTS = "rw,noatime,nobarrier".freeze
6
+ TEMP_DISK_MOUNT_OPTS = "rw,noatime".freeze
7
7
 
8
8
  attr_reader :disk
9
9
 
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '5.0.0'.freeze
3
+ VERSION = '5.0.1'.freeze
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_runtime_dependency "bcrypt", "~> 3.1.10"
27
27
  spec.add_runtime_dependency "highline", "~> 1.6.21"
28
28
  spec.add_runtime_dependency "i18n", "~> 0.8"
29
- spec.add_runtime_dependency "linux_admin", ["~> 1.0", ">=1.2.3"]
29
+ spec.add_runtime_dependency "linux_admin", ["~> 1.0", ">=1.2.4"]
30
30
  spec.add_runtime_dependency "manageiq-password", "~> 0.3"
31
31
  spec.add_runtime_dependency "optimist", "~> 3.0"
32
32
  spec.add_runtime_dependency "pg"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -103,7 +103,7 @@ dependencies:
103
103
  version: '1.0'
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: 1.2.3
106
+ version: 1.2.4
107
107
  type: :runtime
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
@@ -113,7 +113,7 @@ dependencies:
113
113
  version: '1.0'
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: 1.2.3
116
+ version: 1.2.4
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: manageiq-password
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  version: '0'
317
317
  requirements: []
318
318
  rubyforge_project:
319
- rubygems_version: 2.7.6
319
+ rubygems_version: 2.7.6.2
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: ManageIQ Appliance Console