Method: HP::Cloud::Accounts#migrate
- Defined in:
- lib/hpcloud/accounts.rb
#migrate ⇒ Object
299 300 301 302 303 304 305 306 307 308 309 310 311 312 |
# File 'lib/hpcloud/accounts.rb', line 299 def migrate ray = list return false if ray.index('default').nil? return false unless ray.index('hp').nil? warn "Renaming account 'default' to 'hp'..." return false unless copy('default', 'hp') remove('default') config = Config.new(true) config.set(:default_account, 'hp') config.write() warn "Account 'hp' is now the default" return true end |