Class: FakeGit::UpdateRef

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_git/update_ref.rb

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object



2
3
4
5
6
7
# File 'lib/fake_git/update_ref.rb', line 2

def call(*args)
  path = ".fakegit/refs/heads/master"
  File.open(path, 'w') do |file|
    file.write(args.first)
  end
end