Class: Crackin::Scm::Tags

Inherits:
Git
  • Object
show all
Defined in:
lib/crackin/scm/git.rb

Instance Attribute Summary

Attributes inherited from Git

#git

Instance Method Summary collapse

Methods inherited from Git

#add, #between, #change_branch, #commit, #create_branch, #current_branch, #delete_branch, #log, #merge_from, #pending, #pending?, #push, #push_tags, #reset, #tags, #uncommit

Methods inherited from Base

#change_branch, #commit, #push, #push_tags, #tag

Constructor Details

#initialize(git) ⇒ Tags

Returns a new instance of Tags.



94
95
96
# File 'lib/crackin/scm/git.rb', line 94

def initialize(git)
  @git = git
end

Instance Method Details

#allObject



106
107
108
# File 'lib/crackin/scm/git.rb', line 106

def all
  @git.tags
end

#create(name) ⇒ Object



102
103
104
# File 'lib/crackin/scm/git.rb', line 102

def create(name)
  @git.add_tag(name)
end

#delete(name) ⇒ Object



110
111
112
# File 'lib/crackin/scm/git.rb', line 110

def delete(name)
  @git.tag_delete(name)
end

#find(name) ⇒ Object



98
99
100
# File 'lib/crackin/scm/git.rb', line 98

def find(name)
  @git.tag(name)
end