Class: TerraformEnterprise::CommandLine::Commands::OrganizationsCommand

Inherits:
TerraformEnterprise::CommandLine::Command show all
Defined in:
lib/terraform_enterprise/command_line/commands/organizations.rb

Constant Summary collapse

CMD_STR =
STRINGS[:organizations][:commands]

Constants included from TerraformEnterprise::CommandLine

STRINGS, VERSION

Instance Method Summary collapse

Methods included from Util::Tar

#gzip, #tar, #tarball

Instance Method Details

#create(name, email) ⇒ Object



16
17
18
# File 'lib/terraform_enterprise/command_line/commands/organizations.rb', line 16

def create(name, email)
  render client.organizations.create(name: name, email: email)
end

#delete(name) ⇒ Object



26
27
28
# File 'lib/terraform_enterprise/command_line/commands/organizations.rb', line 26

def delete(name)
  render client.organizations.delete(name:name)
end

#get(name) ⇒ Object



21
22
23
# File 'lib/terraform_enterprise/command_line/commands/organizations.rb', line 21

def get(name)
  render client.organizations.get(name:name)
end

#listObject



11
12
13
# File 'lib/terraform_enterprise/command_line/commands/organizations.rb', line 11

def list
  render client.organizations.list, only: [:id, :name, 'created-at', :email]
end