Class: Nit::App
Instance Method Summary collapse
- #commit(*args) ⇒ Object
- #ignore(*args) ⇒ Object
- #pull ⇒ Object
- #push ⇒ Object
- #status ⇒ Object
- #unignore(*args) ⇒ Object
Instance Method Details
#commit(*args) ⇒ Object
31 32 33 |
# File 'lib/nit/app.rb', line 31 def commit(*args) puts Commit.new(config).call(`git status`, args) end |
#ignore(*args) ⇒ Object
36 37 38 |
# File 'lib/nit/app.rb', line 36 def ignore(*args) puts Ignore.new(config).call(`git status`, args) end |
#pull ⇒ Object
47 48 49 |
# File 'lib/nit/app.rb', line 47 def pull `git pull origin #{current_branch}` end |
#push ⇒ Object
52 53 54 |
# File 'lib/nit/app.rb', line 52 def push `git push origin #{current_branch}` end |