Sha256: b25dedcb10aa2e1026406ed789dca6a6108e9e7670814ae9b38d76daf98fb2fb

Contents?: true

Size: 267 Bytes

Versions: 11

Compression:

Stored size: 267 Bytes

Contents

module FileActions
  private
  def copy(type, name:, dest:, **options)
    self.destination_root = dest
    name_in_dest = options.fetch(:as, name)

    if type == :file
      copy_file name, name_in_dest
    else
      directory name, name_in_dest
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bookends-2.8.0 lib/bookends/file_actions.rb
bookends-2.7.0 lib/bookends/file_actions.rb
bookends-2.6.0 lib/bookends/file_actions.rb
bookends-2.5.2 lib/bookends/file_actions.rb
bookends-2.5.1 lib/bookends/file_actions.rb
bookends-2.5.0 lib/bookends/file_actions.rb
bookends-2.4.4 lib/bookends/file_actions.rb
bookends-2.4.3 lib/bookends/file_actions.rb
bookends-2.4.2 lib/bookends/file_actions.rb
bookends-2.4.1 lib/bookends/file_actions.rb
bookends-2.4.0 lib/bookends/file_actions.rb