Class: Semaph::Shells::Workflow::WorkflowShell

Inherits:
Object
  • Object
show all
Includes:
ShellShock::Context
Defined in:
lib/semaph/shells/workflow/workflow_shell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#workflowObject (readonly)

Returns the value of attribute workflow.



10
11
12
# File 'lib/semaph/shells/workflow/workflow_shell.rb', line 10

def workflow
  @workflow
end