class DependencyUpdater::Updater
Public Class Methods
new()
click to toggle source
# File lib/dependency_updater/updater.rb, line 9 def initialize @gitlab = GitlabHandler.new @gem = GemHandler.new(@gitlab) @ruby = RubyHandler.new(@gitlab) @updates = false end
Public Instance Methods
git_init()
click to toggle source
# File lib/dependency_updater/updater.rb, line 16 def git_init @gitlab.new_branch end
update_gems_and_cap_deploy()
click to toggle source
# File lib/dependency_updater/updater.rb, line 25 def update_gems_and_cap_deploy @updates = true if @gem.update_gems @gem.update_capistrano_deploy end
update_ruby()
click to toggle source
# File lib/dependency_updater/updater.rb, line 20 def update_ruby @ruby.find_version_data @updates = true if @ruby.update_project_files end
wrap_up()
click to toggle source
# File lib/dependency_updater/updater.rb, line 30 def wrap_up @updates ? @gitlab.create_mr : @gitlab.backout end