Class: UffizziCore::ComposeFile::Parsers::Services::DeployParserService

Inherits:
Object
  • Object
show all
Defined in:
app/services/uffizzi_core/compose_file/parsers/services/deploy_parser_service.rb

Class Method Summary collapse

Class Method Details

.parse(deploy_data) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'app/services/uffizzi_core/compose_file/parsers/services/deploy_parser_service.rb', line 5

def parse(deploy_data)
  return {} if deploy_data.blank?

  auto = prepare_deploy_auto(deploy_data)
  memory = prepare_memory(deploy_data)

  {
    auto: auto,
    memory: memory,
  }
end