Class: LessonsIndexer::Addons::GitManager::Pusher
- Inherits:
-
Object
- Object
- LessonsIndexer::Addons::GitManager::Pusher
- Defined in:
- lib/lessons_indexer/addons/git_manager.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message) ⇒ Pusher
constructor
A new instance of Pusher.
- #push! ⇒ Object
Constructor Details
#initialize(message) ⇒ Pusher
Returns a new instance of Pusher.
7 8 9 |
# File 'lib/lessons_indexer/addons/git_manager.rb', line 7 def initialize() = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/lessons_indexer/addons/git_manager.rb', line 5 def end |
Instance Method Details
#push! ⇒ Object
11 12 13 14 15 |
# File 'lib/lessons_indexer/addons/git_manager.rb', line 11 def push! %x{git add .} %x{git commit -am "#{message}"} %x{git push origin HEAD} end |