Class: Semaph::Shells::Project::ProjectShell

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ ProjectShell

Returns a new instance of ProjectShell.



16
17
18
19
20
21
# File 'lib/semaph/shells/project/project_shell.rb', line 16

def initialize(project)
  @project = project
  @prompt = "🏗  #{project.client.name} #{project.name} > "
  add_commands
  @workflows_list_command.execute("")
end

Instance Attribute Details

#projectObject (readonly)

Returns the value of attribute project.



12
13
14
# File 'lib/semaph/shells/project/project_shell.rb', line 12

def project
  @project
end