Class: Semaph::Shells::Project::ProjectShell
- Inherits:
-
Object
- Object
- Semaph::Shells::Project::ProjectShell
- Includes:
- ShellShock::Context
- Defined in:
- lib/semaph/shells/project/project_shell.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(project) ⇒ ProjectShell
constructor
A new instance of ProjectShell.
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
#project ⇒ Object (readonly)
Returns the value of attribute project.
12 13 14 |
# File 'lib/semaph/shells/project/project_shell.rb', line 12 def project @project end |