Class: Semaph::Shells::Workflow::WorkflowShell
- Inherits:
-
Object
- Object
- Semaph::Shells::Workflow::WorkflowShell
- Includes:
- ShellShock::Context
- Defined in:
- lib/semaph/shells/workflow/workflow_shell.rb
Instance Attribute Summary collapse
-
#workflow ⇒ Object
readonly
Returns the value of attribute workflow.
Instance Method Summary collapse
-
#initialize(workflow) ⇒ WorkflowShell
constructor
A new instance of WorkflowShell.
Constructor Details
#initialize(workflow) ⇒ WorkflowShell
Returns a new instance of WorkflowShell.
14 15 16 17 18 19 20 |
# File 'lib/semaph/shells/workflow/workflow_shell.rb', line 14 def initialize(workflow) @workflow = workflow project = @workflow.project @prompt = "🏗 #{project.client.name} #{project.name} #{workflow.id} > " add_commands @list_command.execute("") end |
Instance Attribute Details
#workflow ⇒ Object (readonly)
Returns the value of attribute workflow.
10 11 12 |
# File 'lib/semaph/shells/workflow/workflow_shell.rb', line 10 def workflow @workflow end |