Class: TerraformEnterprise::CommandLine::Commands::OrganizationsCommand
- Inherits:
-
TerraformEnterprise::CommandLine::Command
- Object
- Thor
- TerraformEnterprise::CommandLine::Command
- TerraformEnterprise::CommandLine::Commands::OrganizationsCommand
- Defined in:
- lib/terraform_enterprise/command_line/commands/organizations.rb
Constant Summary collapse
- CMD_STR =
STRINGS[:organizations][:commands]
Constants included from TerraformEnterprise::CommandLine
Instance Method Summary collapse
Methods included from Util::Tar
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 |
#list ⇒ Object
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 |