1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #6587: Switch to opennebula-augeas gem (#3079)

Switch to OpenNebula fork of the discontinued augeas gem.
This commit is contained in:
Jan Orel 2024-09-03 14:08:07 +02:00
parent 68cdd49312
commit 82f87e987f
No known key found for this signature in database
GPG Key ID: C7B901ABAF4CFF1B
4 changed files with 2 additions and 14 deletions

View File

@ -246,15 +246,11 @@ CommandParser::CmdParser.new(ARGV) do
command :serversync, sync_desc, :server, :options => [DATABASE] do
begin
# Suppress augeas require warning message
$VERBOSE = nil
gem 'augeas', '~> 0.6'
require 'augeas'
rescue Gem::LoadError
STDERR.puts(
'Augeas gem is not installed, run `gem install ' \
'augeas -v \'0.6\'` to install it'
'opennebula-augeas` to install it'
)
exit(-1)
end

View File

@ -104,9 +104,6 @@ module OpenNebula
file_name = 'monitord.conf'
begin
# Suppress augeas require warning message
$VERBOSE = nil
require 'augeas'
aug = Augeas.create(:no_modl_autoload => true,

View File

@ -14,7 +14,6 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #
gem 'augeas', '~> 0.6'
require 'augeas'
# rubocop:disable Style/ClassAndModuleChildren

View File

@ -127,15 +127,11 @@ class OneDB
def read_credentials(ops)
begin
# Suppress augeas require warning message
$VERBOSE = nil
gem 'augeas', '~> 0.6'
require 'augeas'
rescue Gem::LoadError
STDERR.puts(
'Augeas gem is not installed, run `gem install ' \
'augeas -v \'0.6\'` to install it'
'opennebula-augeas` to install it'
)
exit(-1)
end