Class: UffizziCore::ComposeFile::ConfigFilesService
- Inherits:
-
Object
- Object
- UffizziCore::ComposeFile::ConfigFilesService
- Defined in:
- app/services/uffizzi_core/compose_file/config_files_service.rb
Instance Method Summary collapse
- #create_config_files(compose_dependencies) ⇒ Object
-
#initialize(compose_file_form) ⇒ ConfigFilesService
constructor
A new instance of ConfigFilesService.
Constructor Details
#initialize(compose_file_form) ⇒ ConfigFilesService
Returns a new instance of ConfigFilesService.
4 5 6 7 8 9 10 11 |
# File 'app/services/uffizzi_core/compose_file/config_files_service.rb', line 4 def initialize(compose_file_form) @compose_file_form = compose_file_form @repository_id = compose_file_form.repository_id @branch = compose_file_form.branch @path = compose_file_form.path @user = compose_file_form.added_by @project = compose_file_form.project end |
Instance Method Details
#create_config_files(compose_dependencies) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/services/uffizzi_core/compose_file/config_files_service.rb', line 13 def create_config_files(compose_dependencies) configs_dependencies = UffizziCore::ComposeFile::GithubDependenciesService.configs_dependencies(compose_dependencies) errors = [] configs_dependencies.each do |config_dependency| errors = create_config_file(config_dependency) errors << errors if errors end errors end |