Method: Cyclid::API::Plugins::Google#release
- Defined in:
- app/cyclid/plugins/builder/google.rb
#release(_transport, buildhost) ⇒ Object
Destroy the build host
85 86 87 88 89 90 91 92 93 |
# File 'app/cyclid/plugins/builder/google.rb', line 85 def release(_transport, buildhost) name = buildhost[:name] instance = @api.servers.get(name) raise "instance #{name} does not exist" unless instance Cyclid.logger.info "destroying #{name}" raise 'failed to destroy instance' unless instance.destroy end |