Sha256: d3210736e473ec5002af6e19eb82d0d3f3c354ec5e597ea19647f6ea5d87a9b1
Contents?: true
Size: 615 Bytes
Versions: 11
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true module Evertils module Action class CreateMultiple < Action::Base def initialize(notes) return unless notes.is_a? Array notes.each do |child| Notify.info("Creating #{child['label']}") # avoid infinite recursion next if ['create_multiple'].include?(child['action']) child['path'].gsub!('%EVERTILS_CONF_TYPE_PATH%', '~/.evertils/templates/type') runner = ActionRunner.new runner.params = Evertils::Type.new(child['path']).params runner.execute end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems