Class: EacGit::Rspec::StubbedGitLocalRepo::File

Inherits:
FsObject
  • Object
show all
Defined in:
lib/eac_git/rspec/stubbed_git_local_repo/file.rb

Instance Attribute Summary

Attributes inherited from FsObject

#git, #subpath

Instance Method Summary collapse

Methods inherited from FsObject

#initialize, #path

Constructor Details

This class inherits a constructor from EacGit::Rspec::StubbedGitLocalRepo::FsObject

Instance Method Details

#deleteObject



14
15
16
# File 'lib/eac_git/rspec/stubbed_git_local_repo/file.rb', line 14

def delete
  path.unlink
end

#touchObject



10
11
12
# File 'lib/eac_git/rspec/stubbed_git_local_repo/file.rb', line 10

def touch
  ::FileUtils.touch(path.to_path)
end