mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parent
7deb758f4b
commit
cedbba6e99
@ -62,7 +62,7 @@ case "${TARGET}" in
|
||||
apt-get -y install \
|
||||
ruby-dev make gcc libsqlite3-dev libcurl4-openssl-dev \
|
||||
rake libxml2-dev libxslt1-dev patch g++ build-essential \
|
||||
libssl-dev libaugeas-dev \
|
||||
libssl-dev libaugeas-dev pkgconf \
|
||||
postgresql-server-dev-all \
|
||||
>/dev/null
|
||||
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -14,7 +14,6 @@
|
||||
# limitations under the License. #
|
||||
#--------------------------------------------------------------------------- #
|
||||
|
||||
gem 'augeas', '~> 0.6'
|
||||
require 'augeas'
|
||||
|
||||
# rubocop:disable Style/ClassAndModuleChildren
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user