class TerraformEnterprise::CommandLine::Commands::VariablesCommand
Constants
- ATTR_STR
- CMD_STR
Public Instance Methods
create(key, value)
click to toggle source
# File lib/terraform_enterprise/command_line/commands/variables.rb, line 24 def create(key, value) params = { category: options[:category], hcl: options[:hcl], key: key, organization: options[:organization], sensitive: options[:sensitive], value: value, workspace: options[:workspace], } render client.variables.create(params) end
delete(id)
click to toggle source
# File lib/terraform_enterprise/command_line/commands/variables.rb, line 57 def delete(id) render client.variables.delete(id: id) end
get(id)
click to toggle source
# File lib/terraform_enterprise/command_line/commands/variables.rb, line 52 def get(id) render client.variables.get(id:id) end
list()
click to toggle source
# File lib/terraform_enterprise/command_line/commands/variables.rb, line 14 def list render client.variables.list(options) end
update(id)
click to toggle source
# File lib/terraform_enterprise/command_line/commands/variables.rb, line 42 def update(id) params = {id: id} params[:hcl] = options[:hcl] if options.include?('hcl') params[:key] = options[:key] if options[:key] params[:sensitive] = options[:sensitive] if options.include?('sensitive') params[:value] = options[:value] if options[:value] render client.variables.update(params) end