Sha256: 807681e27b11c6298b909fc6f9909e9ab5ea3cae5bd38a1c88ffa7219588035d
Contents?: true
Size: 738 Bytes
Versions: 35
Compression:
Stored size: 738 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['target'] 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, @target] args << @description if @description code << function_call(fn, args) code << "\n" end end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems