Class: Incr::Service::Repository
- Inherits:
-
Object
- Object
- Incr::Service::Repository
- Defined in:
- lib/incr/service/repository.rb
Instance Method Summary collapse
- #add(filename) ⇒ Object
- #commit(message) ⇒ Object
-
#initialize(path) ⇒ Repository
constructor
A new instance of Repository.
- #tag(name) ⇒ Object
Constructor Details
#initialize(path) ⇒ Repository
Returns a new instance of Repository.
6 7 8 |
# File 'lib/incr/service/repository.rb', line 6 def initialize(path) @git = Git.init(path) end |
Instance Method Details
#add(filename) ⇒ Object
10 11 12 |
# File 'lib/incr/service/repository.rb', line 10 def add(filename) @git.add(filename) end |
#commit(message) ⇒ Object
14 15 16 |
# File 'lib/incr/service/repository.rb', line 14 def commit() @git.commit() end |
#tag(name) ⇒ Object
18 19 20 |
# File 'lib/incr/service/repository.rb', line 18 def tag(name) @git.add_tag(name) end |