Class: TerraformEnterprise::CommandLine::Commands::TeamsCommand
- Inherits:
-
TerraformEnterprise::CommandLine::Command
- Object
- Thor
- TerraformEnterprise::CommandLine::Command
- TerraformEnterprise::CommandLine::Commands::TeamsCommand
- Defined in:
- lib/terraform_enterprise/command_line/commands/teams.rb
Constant Summary collapse
Constants included from TerraformEnterprise::CommandLine
Instance Method Summary collapse
Methods included from Util::Tar
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: [: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 |
#list ⇒ Object
13 14 15 |
# File 'lib/terraform_enterprise/command_line/commands/teams.rb', line 13 def list render client.teams.list(organization: [:organization]), except: [:permissions] end |