Class: Kettle::Family::Workflow

Inherits:
Object
  • Object
show all
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"
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(command:, config:, members:, execute: false, commit: true, allow_dirty: false, publish: false, push: false, tag: false, start_step: nil, local_ci: false, continue_ci_failures: false, env_overrides: {}) ⇒ Workflow

Returns a new instance of Workflow.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/kettle/family/workflow.rb', line 18

def initialize(command:, config:, members:, execute: false, commit: true, allow_dirty: false, publish: false, push: false, tag: false, start_step: nil, local_ci: false, continue_ci_failures: false, env_overrides: {})
  @command = command
  @config = config
  @members = members
  @execute = execute
  @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
  @env_overrides = env_overrides
  @gem_signing_password = nil
end

Instance Method Details

#resultsObject



35
36
37
38
39
40
# File 'lib/kettle/family/workflow.rb', line 35

def results
  prompt_for_gem_signing_password if command == "release" && execute && publish && gem_signing_required?
  return branch_target_results unless config.release_target_branches.empty?

  current_branch_results(members)
end