Class: Kettle::Family::Workflow
- Inherits:
-
Object
- Object
- Kettle::Family::Workflow
- Defined in:
- lib/kettle/family/workflow.rb
Constant Summary collapse
- DEFAULT_COMMANDS =
{ "template" => "bundle exec kettle-jem install", "test" => "bundle exec kettle-test", "lint" => "bundle exec rake rubocop_gradual", "docs" => "bundle exec rake yard", "gha-sha-pins" => "bundle exec kettle-gha-sha-pins" }.freeze
- GIT_SYNC_COMMANDS =
{ "push" => [["push", %w[git push]]], "pull" => [["pull", %w[git pull --rebase]]], "up" => [["pull", %w[git pull --rebase]], ["push", %w[git push]]] }.freeze
- TEMPLATE_QUIET_ENV =
{ "KETTLE_JEM_QUIET" => "true", "KETTLE_JEM_DEBUG" => "false", "KETTLE_DEV_DEBUG" => "false", "SMORG_RB_DEBUG" => "false", "DEBUG" => "false", "BUNDLE_QUIET" => "true", "BUNDLE_DEBUG" => "false", "BUNDLER_DEBUG" => "false", "BUNDLE_VERBOSE" => "false", "DEBUG_RESOLVER" => "false", "BUNDLE_SILENCE_DEPRECATIONS" => "true", "BUNDLE_SILENCE_ROOT_WARNING" => "true", "BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES" => "true" }.freeze
Instance Method Summary collapse
-
#initialize(command:, config:, members:, execute: false, accept: true, commit: true, allow_dirty: false, publish: false, push: false, tag: false, start_step: nil, local_ci: false, continue_ci_failures: false, gha_sha_pins_upgrade: "patch", gha_sha_pins_check: false, env_overrides: {}, debug: false, gem_signing_password: nil, jobs: nil, progress_io: nil) ⇒ Workflow
constructor
A new instance of Workflow.
- #results ⇒ Object
Constructor Details
#initialize(command:, config:, members:, execute: false, accept: true, commit: true, allow_dirty: false, publish: false, push: false, tag: false, start_step: nil, local_ci: false, continue_ci_failures: false, gha_sha_pins_upgrade: "patch", gha_sha_pins_check: false, env_overrides: {}, debug: false, gem_signing_password: nil, jobs: nil, progress_io: nil) ⇒ Workflow
Returns a new instance of Workflow.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/kettle/family/workflow.rb', line 41 def initialize(command:, config:, members:, execute: false, accept: true, commit: true, allow_dirty: false, publish: false, push: false, tag: false, start_step: nil, local_ci: false, continue_ci_failures: false, gha_sha_pins_upgrade: "patch", gha_sha_pins_check: false, env_overrides: {}, debug: false, gem_signing_password: nil, jobs: nil, progress_io: nil) @command = command @config = config @members = members @execute = execute @accept = accept @commit = commit @allow_dirty = allow_dirty @publish = publish @push = push @tag = tag @start_step = start_step @local_ci = local_ci @continue_ci_failures = continue_ci_failures @gha_sha_pins_upgrade = gha_sha_pins_upgrade @gha_sha_pins_check = gha_sha_pins_check @env_overrides = env_overrides @debug = debug @gem_signing_password = gem_signing_password @jobs = jobs @progress_io = progress_io end |
Instance Method Details
#results ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/kettle/family/workflow.rb', line 64 def results prompt_for_gem_signing_password if command == "release" && execute && release_signing_prompt_required? return branch_target_results unless config.release_target_branches.empty? return member_local_branch_target_results if member_local_branch_targets? current_branch_results(members) end |