Class: ReleaseProject
- Inherits:
-
Object
- Object
- ReleaseProject
- Includes:
- CommandHelper
- Defined in:
- lib/renuo/cli/app/release_project.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
Instance Method Details
#run(args) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/renuo/cli/app/release_project.rb', line 13 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 |