Sha256: acf35675a6f1f6aea6fee2006c675c6d201c92514d2f2253e7e2c4960ddba239
Contents?: true
Size: 868 Bytes
Versions: 39
Compression:
Stored size: 868 Bytes
Contents
# frozen_string_literal: true module Bolt class PAL class YamlPlan class Step class Upload < Step def self.option_keys Set['catch_errors', 'run_as'] end def self.required_keys Set['destination', 'targets', 'upload'] end # Returns an array of arguments to pass to the step's function call # private def format_args(body) opts = format_options(body) args = [body['upload'], body['destination'], body['targets']] args << body['description'] if body['description'] args << opts if opts.any? args end # Returns the function corresponding to the step # private def function 'upload_file' end end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems