Sha256: 80c5445a084ada337702627838cf1222f721f0e8d453fbc2681fff1f78e574f8
Contents?: true
Size: 740 Bytes
Versions: 43
Compression:
Stored size: 740 Bytes
Contents
# frozen_string_literal: true module Bolt class PAL class YamlPlan class Step class Command < Step def self.allowed_keys super + Set['command'] end def self.required_keys Set['targets'] end def initialize(step_body) super @command = step_body['command'] end def transpile code = String.new(" ") code << "$#{@name} = " if @name fn = 'run_command' args = [@command, @targets] args << @description if @description code << function_call(fn, args) code << "\n" end end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems