Class: Rig::Command::Account::Main

Inherits:
Rig::Command::Abstract show all
Defined in:
lib/rig/command/account.rb

Overview

TODO: figure out how to make this work with YAML references class Change < Abstract

PROPS = %w{awsid awskey dnszone region}
parameter "PROPERTY", "the property of config to change, must be one of #{PROPS.inspect}"
parameter "VALUE", "the value to set for the property"
def execute
  case property
    when "awsid"
      Rig.[:common][:aws_access_key_id] = value
      Rig.
    when "awskey"
      Rig.[:common][:aws_secret_access_key] = value
      Rig.
    when "dnszone"
      Rig.[:dns_zone] = value
      Rig.
    when "region"
      Rig.[:region] = value
      Rig.
    else
      puts "Property #{property} not supported"
  end
end

end

Method Summary

Methods inherited from Rig::Command::Abstract

#execute, #instance_list, #print_table