Class: TerraformEnterprise::CommandLine::Commands::TeamsCommand

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

Constant Summary collapse

ATTR_STR =
STRINGS[:teams][:attributes]
CMD_STR =
STRINGS[:teams][: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) ⇒ Object



19
20
21
# File 'lib/terraform_enterprise/command_line/commands/teams.rb', line 19

def create(name)
  render client.teams.create(name: name, organization: options[:organization])
end

#delete(id) ⇒ Object



29
30
31
# File 'lib/terraform_enterprise/command_line/commands/teams.rb', line 29

def delete(id)
  render client.teams.delete(id: id), except: [:permissions]
end

#get(id) ⇒ Object



24
25
26
# File 'lib/terraform_enterprise/command_line/commands/teams.rb', line 24

def get(id)
  render client.teams.get(id:id), except: [:permissions]
end

#listObject



13
14
15
# File 'lib/terraform_enterprise/command_line/commands/teams.rb', line 13

def list
  render client.teams.list(organization: options[:organization]), except: [:permissions]
end