Class: Releaseko::RepositoryUpdater
- Inherits:
-
Object
- Object
- Releaseko::RepositoryUpdater
- Defined in:
- lib/releaseko/repository_updater.rb
Overview
Class that is responsible for updating the repository.
Class Method Summary collapse
Class Method Details
.perform ⇒ Object
6 7 8 9 10 11 |
# File 'lib/releaseko/repository_updater.rb', line 6 def self.perform puts 'Updating remote repository' system('git add CHANGELOG.md metadata/app-version changelogs/*') system('git commit -m "Bump app version and release changelogs"') system('git push') end |
.set_to_push ⇒ Object
13 14 15 |
# File 'lib/releaseko/repository_updater.rb', line 13 def self.set_to_push ['-p', '--push'].include?(ARGV[2]) end |