Class: TerraformEnterprise::CommandLine::ConfigurationVersionsCommand
- Inherits:
-
Command
- Object
- Thor
- Command
- TerraformEnterprise::CommandLine::ConfigurationVersionsCommand
- Defined in:
- lib/terraform_enterprise/command_line/commands/configuration_versions.rb
Overview
Configuration Version Commoand
Constant Summary collapse
- ATTR_STR =
STRINGS[:configuration_versions][:attributes]
- CMD_STR =
STRINGS[:configuration_versions][:commands]
Constants included from TerraformEnterprise::CommandLine
Instance Method Summary collapse
Methods included from Util::Tar
Instance Method Details
#create ⇒ Object
19 20 21 |
# File 'lib/terraform_enterprise/command_line/commands/configuration_versions.rb', line 19 def create render client.configuration_versions.create(workspace: [:workspace_id]) end |
#get(id) ⇒ Object
24 25 26 |
# File 'lib/terraform_enterprise/command_line/commands/configuration_versions.rb', line 24 def get(id) render client.configuration_versions.get(id: id) end |
#list ⇒ Object
13 14 15 |
# File 'lib/terraform_enterprise/command_line/commands/configuration_versions.rb', line 13 def list render client.configuration_versions.list(workspace: [:workspace_id]) end |
#upload(path, url) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/terraform_enterprise/command_line/commands/configuration_versions.rb', line 29 def upload(path, url) content = tarball(path) params = { content: content, url: url } render client.configuration_versions.upload(params) end |