Class: TerraformEnterprise::CommandLine::OrganizationsCommand
- Inherits:
-
Command
- Object
- Thor
- Command
- TerraformEnterprise::CommandLine::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
15 16 17 |
# File 'lib/terraform_enterprise/command_line/commands/organizations.rb', line 15 def create(name, email) render client.organizations.create(name: name, email: email) end |
#delete(name) ⇒ Object
25 26 27 |
# File 'lib/terraform_enterprise/command_line/commands/organizations.rb', line 25 def delete(name) render client.organizations.delete(name:name) end |
#get(name) ⇒ Object
20 21 22 |
# File 'lib/terraform_enterprise/command_line/commands/organizations.rb', line 20 def get(name) render client.organizations.get(name:name) end |
#list ⇒ Object
10 11 12 |
# File 'lib/terraform_enterprise/command_line/commands/organizations.rb', line 10 def list render client.organizations.list, only: [:id, :name, 'created-at', :email] end |