Class: TerraformEnterprise::Commands::TeamsCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/terraform-enterprise/commands/teams_command.rb

Constant Summary collapse

ATTR_STR =
STRINGS[:teams][:attributes]
CMD_STR =
STRINGS[:teams][:commands]

Instance Method Summary collapse

Instance Method Details

#create(name) ⇒ Object



18
19
20
# File 'lib/terraform-enterprise/commands/teams_command.rb', line 18

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

#delete(id) ⇒ Object



28
29
30
# File 'lib/terraform-enterprise/commands/teams_command.rb', line 28

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

#get(id) ⇒ Object



23
24
25
# File 'lib/terraform-enterprise/commands/teams_command.rb', line 23

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

#listObject



12
13
14
# File 'lib/terraform-enterprise/commands/teams_command.rb', line 12

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