Class: Semaph::Shells::Organisation::OrganisationShell
- Inherits:
-
Object
- Object
- Semaph::Shells::Organisation::OrganisationShell
- Includes:
- ShellShock::Context
- Defined in:
- lib/semaph/shells/organisation/organisation_shell.rb
Instance Method Summary collapse
-
#initialize(organisation) ⇒ OrganisationShell
constructor
A new instance of OrganisationShell.
Constructor Details
#initialize(organisation) ⇒ OrganisationShell
Returns a new instance of OrganisationShell.
14 15 16 17 18 19 |
# File 'lib/semaph/shells/organisation/organisation_shell.rb', line 14 def initialize(organisation) @client = ::Semaph::Client.new(organisation["auth"]["token"], organisation["host"]) @prompt = "🏗 #{@client.name} > " add_commands @project_list_command.execute("") end |