Method: Machinery::WorkloadMapperDSL#to_h

Defined in:
lib/workload_mapper_dsl.rb

#to_hObject



39
40
41
42
43
44
45
46
47
48
# File 'lib/workload_mapper_dsl.rb', line 39

def to_h
  return {} unless service
  {
    name => {
      "service" => service,
      "parameters" => parameters,
      "data" => data
    }
  }
end