Class: Semaph::Shells::Organisation::OrganisationShell

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

Instance Method Summary collapse

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