Sha256: 749815020dfcf99a0d7a4dd5eb033d7cac2dc2f3d70488f5d4820e736e807959

Contents?: true

Size: 425 Bytes

Versions: 7

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

require 'eac_git/rspec/stubbed_git_local_repo/fs_object'
require 'fileutils'

module EacGit
  module Rspec
    module StubbedGitLocalRepo
      class File < ::EacGit::Rspec::StubbedGitLocalRepo::FsObject
        def touch
          ::FileUtils.touch(path.to_path)
        end

        def delete
          path.unlink
        end

        delegate :write, to: :path
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
eac_tools-0.86.5 sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/file.rb
eac_tools-0.86.4 sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/file.rb
eac_tools-0.86.3 sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/file.rb
eac_git-0.16.0 lib/eac_git/rspec/stubbed_git_local_repo/file.rb
eac_tools-0.86.2 sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/file.rb
eac_git-0.15.0 lib/eac_git/rspec/stubbed_git_local_repo/file.rb
eac_tools-0.84.2 sub/eac_git/lib/eac_git/rspec/stubbed_git_local_repo/file.rb