Class: Semaph::Commands::RerunWorkflowCommand
- Inherits:
-
Object
- Object
- Semaph::Commands::RerunWorkflowCommand
- Defined in:
- lib/semaph/commands/rerun_workflow_command.rb
Instance Attribute Summary collapse
-
#help ⇒ Object
readonly
Returns the value of attribute help.
Instance Method Summary collapse
- #execute(_whatever) ⇒ Object
-
#initialize(workflow) ⇒ RerunWorkflowCommand
constructor
A new instance of RerunWorkflowCommand.
Constructor Details
#initialize(workflow) ⇒ RerunWorkflowCommand
Returns a new instance of RerunWorkflowCommand.
6 7 8 9 |
# File 'lib/semaph/commands/rerun_workflow_command.rb', line 6 def initialize(workflow) @workflow = workflow @help = "rerun workflow" end |
Instance Attribute Details
#help ⇒ Object (readonly)
Returns the value of attribute help.
4 5 6 |
# File 'lib/semaph/commands/rerun_workflow_command.rb', line 4 def help @help end |
Instance Method Details
#execute(_whatever) ⇒ Object
11 12 13 |
# File 'lib/semaph/commands/rerun_workflow_command.rb', line 11 def execute(_whatever) ::Semaph::Shells::Workflow::WorkflowShell.new(@workflow.rerun).push end |