Class: Bosh::Cli::Command::BoshVersionUpdater

Inherits:
Base
  • Object
show all
Includes:
BoshVersionUpdater::Helpers, Versions::Helpers
Defined in:
lib/bosh/cli/commands/bosh_version_updater.rb

Instance Method Summary collapse

Methods included from BoshVersionUpdater::Helpers

#find_gemspec_file, #make_commit, #make_commit?, #make_push, #make_push?, #run_bundle_install, #run_tests, #run_tests?, #update_bosh_gem_version_in_gemspec

Instance Method Details

#update_bosh_version(plugin_path = Dir.pwd) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/bosh/cli/commands/bosh_version_updater.rb', line 15

def update_bosh_version(plugin_path = Dir.pwd)
  gemspec_file = find_gemspec_file(plugin_path)
  update_bosh_gem_version_in_gemspec(gemspec_file)
  run_bundle_install(plugin_path)
  run_tests(plugin_path) if run_tests?
  if make_commit?
    make_commit(plugin_path)
    make_push(plugin_path) if make_push?
  end
end