Sha256: 6befb5fbfa05a11f07d8d8b20be1ceeba419322a95b60c0ab50cba406d203f9d
Contents?: true
Size: 938 Bytes
Versions: 39
Compression:
Stored size: 938 Bytes
Contents
# frozen_string_literal: true module Bolt class PAL class YamlPlan class Step class Plan < Step def self.allowed_keys super + Set['parameters'] end def self.option_keys Set['catch_errors', 'run_as'] end def self.required_keys Set['plan'] end # Returns an array of arguments to pass to the step's function call # private def format_args(body) opts = format_options(body) params = (body['parameters'] || {}).merge(opts) args = [body['plan']] args << body['targets'] if body['targets'] args << params if params.any? args end # Returns the function corresponding to the step # private def function 'run_plan' end end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems