Permalink
Browse files

add alias for create, update and delete

  • Loading branch information...
1 parent 37cee2c commit 76042dd72b2c3e4ee43343ca23aa17a5ed0a99f5 @carvil carvil committed Jun 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/octokit/client/refs.rb
@@ -46,6 +46,7 @@ def create_ref(repo, ref, sha, options={})
}
post("repos/#{Repository.new(repo)}/git/refs", options.merge(parameters))
end
+ alias :create_reference :create_ref
# Update a reference
#
@@ -64,6 +65,7 @@ def update_ref(repo, ref, sha, force=true, options={})
}
patch("repos/#{Repository.new(repo)}/git/refs/#{ref}", options.merge(parameters))
end
+ alias :update_reference :update_ref
# Delete a single reference
#
@@ -76,6 +78,7 @@ def update_ref(repo, ref, sha, force=true, options={})
def delete_ref(repo, ref, options={})
delete("/repos/#{Repository.new(repo)}/git/refs/#{ref}", options, 3, true, true)
end
+ alias :delete_reference :delete_ref
end
end

0 comments on commit 76042dd

Please sign in to comment.