Class: Renuo::Cli::Commands::Release

Inherits:
Object
  • Object
show all
Includes:
CommandHelper
Defined in:
lib/renuo/cli/commands/release.rb

Overview

rubocop:disable Metrics/ClassLength

Constant Summary collapse

UPDATE_TYPES =
%w[major minor patch custom].freeze
TMP_FOLDER_NAME =
"_RENUO_RELEASE_TEMP_#{rand(100_000_000)}".freeze
MOVE_TO_TMP_FOLDER =
"mkdir -p #{TMP_FOLDER_NAME} && cd #{TMP_FOLDER_NAME}".freeze

Instance Method Summary collapse

Methods included from CommandHelper

#open_path, #run_command

Instance Method Details

#run(args) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/renuo/cli/commands/release.rb', line 20

def run(args)
  @project_name, @update_type, @version = args
  validate_args
  open_comparison_page
  checkout_project # in the meantime
  veto_comparison
  @version ||= calculate_version
  release
ensure
  cleanup
end