Class: TerraformEnterprise::Commands::TeamsCommand
- Defined in:
- lib/terraform-enterprise/commands/teams_command.rb
Constant Summary collapse
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: [: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 |
#list ⇒ Object
12 13 14 |
# File 'lib/terraform-enterprise/commands/teams_command.rb', line 12 def list render client.teams.list(organization: [:organization]), except: [:permissions] end |