Class: Crackin::Scm::Tags
- Inherits:
-
Git
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?, #pull, #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.
100
101
102
|
# File 'lib/crackin/scm/git.rb', line 100
def initialize(git)
@git = git
end
|
Instance Method Details
#all ⇒ Object
112
113
114
|
# File 'lib/crackin/scm/git.rb', line 112
def all
@git.tags
end
|
#create(name) ⇒ Object
108
109
110
|
# File 'lib/crackin/scm/git.rb', line 108
def create(name)
@git.add_tag(name)
end
|
#delete(name) ⇒ Object
116
117
118
|
# File 'lib/crackin/scm/git.rb', line 116
def delete(name)
@git.tag_delete(name)
end
|
#find(name) ⇒ Object
104
105
106
|
# File 'lib/crackin/scm/git.rb', line 104
def find(name)
@git.tag(name)
end
|