Sha256: 01535d063b7f76ac2ee5172b0e3041d49a7a0ef122cc808c9cacf4b8796c5627
Contents?: true
Size: 472 Bytes
Versions: 7
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true module Nocode module Steps module Io # Write the contents of a register to disk. class Write < Step option :path, :register def perform data = registers[register_option] FileUtils.mkdir_p(File.dirname(path)) File.write(path, data) end private def path File.join(*array(path_option)) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems