Sha256: c8af88f315e513049df09e72e53c3a0f78d0c20eab19f8f2801b222c175ee0bf

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

require 'fileutils'

module EnginePack
  module Adaptors
    class IO
      def copy_files(files:, to:)
        FileUtils.cp_r(
          files,
          to,
          preserve: true
        )
      end

      def exists?(path:)
        File.exist?(path)
      end

      def mkdir(path:)
        FileUtils.mkdir_p(path)
      end

      def tmpdir
        Dir.tmpdir
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
engine_pack-0.2.0 lib/engine_pack/adaptors/io.rb
engine_pack-0.1.0 lib/engine_pack/adaptors/io.rb