Class: Ide::BaseConfigService
- Inherits:
-
BaseService
- Object
- BaseService
- Ide::BaseConfigService
- Defined in:
- app/services/ide/base_config_service.rb
Direct Known Subclasses
Constant Summary collapse
- ValidationError =
Class.new(StandardError)
- WEBIDE_CONFIG_FILE =
'.gitlab/.gitlab-webide.yml'
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#config_content ⇒ Object
readonly
Returns the value of attribute config_content.
Attributes inherited from BaseService
#current_user, #params, #project
Instance Method Summary collapse
Methods inherited from BaseService
Methods included from BaseServiceUtility
#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level
Methods included from Gitlab::Allowable
Constructor Details
This class inherits a constructor from BaseService
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'app/services/ide/base_config_service.rb', line 9 def config @config end |
#config_content ⇒ Object (readonly)
Returns the value of attribute config_content.
9 10 11 |
# File 'app/services/ide/base_config_service.rb', line 9 def config_content @config_content end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/services/ide/base_config_service.rb', line 11 def execute check_access_and_load_config! success rescue ValidationError => e error(e.) end |