Sha256: 69e67052f4efcf18214133cd4fd5ee4e0552a32d46ba0939c0d237957524d842
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true module Nocode module Steps module Io # List all files in the path option. Wildcards can be used. # # Mechanic: https://ruby-doc.org/core-2.5.0/Dir.html#method-c-glob class List < Step option :path, :register def perform registers[register_option] = Dir[path].reject { |p| File.directory?(p) } end private def path File.join(*array(path_option)) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nocode-0.0.10 | lib/nocode/steps/io/list.rb |
nocode-0.0.9 | lib/nocode/steps/io/list.rb |
nocode-0.0.8 | lib/nocode/steps/io/list.rb |