Sha256: 6025b0ed871cbd394795b8e53efb11aa3b1311106e221f26f6091da2cd08d40c

Contents?: true

Size: 277 Bytes

Versions: 14

Compression:

Stored size: 277 Bytes

Contents

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bookends-2.3.7 lib/bookends/file_actions.rb
bookends-2.3.6 lib/bookends/file_actions.rb
bookends-2.3.5 lib/bookends/file_actions.rb
bookends-2.3.4 lib/bookends/file_actions.rb
bookends-2.3.3 lib/bookends/file_actions.rb
bookends-2.3.1 lib/bookends/file_actions.rb
bookends-2.3.0 lib/bookends/file_actions.rb
bookends-2.2.1 lib/bookends/file_actions.rb
bookends-2.2.0 lib/bookends/file_actions.rb
bookends-2.1.3 lib/bookends/file_actions.rb
bookends-2.1.2 lib/bookends/file_actions.rb
bookends-2.1.1 lib/bookends/file_actions.rb
bookends-2.0.1 lib/bookends/file_actions.rb
bookends-2.0.0 lib/bookends/file_actions.rb