Files
old-vendor-scheduler-service/app/services/vle/vle_settings.rb
2022-03-23 05:44:42 +01:00

25 lines
483 B
Ruby

# frozen_string_literal: true
module Vle
class VleSettings
include Singleton
def target_project
AppConfig.safe_get('onex.target_project_id') || '1'
end
def central_url(path)
URI::join(
AppConfig.safe_get('onex.central_url') || 'http://localhost:5070',
path
)
end
def scheduler_url(path)
URI::join(
AppConfig.safe_get('onex.scheduler_url') || 'http://localhost:5040',
path
)
end
end
end