Module: Bimble::Helpers::Updater

Included in:
GitStrategy::Clone, GitStrategy::GithubApi
Defined in:
lib/bimble/helpers/updater.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/bimble/helpers/updater.rb', line 3

def update
  in_working_copy do
    Bimble.bundle_update
    if lockfile_changed?
      commit_to_new_branch
      @pr = open_pr(branch_name, default_branch) if @oauth_token
    end
  end
  @pr ? @pr['html_url'] : nil
end