Method: Deploy::Project#latest_revision
- Defined in:
- lib/deploy/resources/project.rb
#latest_revision(branch = '') ⇒ Object
14 15 16 17 18 19 |
# File 'lib/deploy/resources/project.rb', line 14 def latest_revision(branch = '') branch ||= 'master' req = Request.new(self.class.member_path(self.permalink) + "/repository/latest_revision?branch=#{branch}").make parsed = JSON.parse(req.output) parsed['ref'] end |