Class: ReleaseProject

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/app/release_project.rb

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

Instance Method Details

#run(args) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/renuo/cli/app/release_project.rb', line 6

def run(args)
  @project_name, @update_type, @version = args
  validate_project_name
  validate_update_type
  validate_custom_version_format
  compare_develop_master
  checkout_project
  @version ||= calculate_version
  release
ensure
  cleanup
end