Initial commit
This commit is contained in:
25
app/services/vle/vle_settings.rb
Normal file
25
app/services/vle/vle_settings.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user