Sha256: fced4965490d6883af9df672b2ea45aaf4930fcb8659b2df99eaf36b30cb08d9
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
module VagrantPlugins module Rackspace module Action class ListServers def initialize(app, env) @app = app end def call(env) compute_service = env[:rackspace_compute] env[:ui].info ('%-20s %-20s %s' % ['Server Name', 'State', 'IPv4 address']) compute_service.servers.sort_by(&:name).each do |server| env[:ui].info ('%-20s %-20s %s' % [server.name, server.state, server.access_ipv4_address]) end @app.call(env) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-rackspace-0.1.10 | lib/vagrant-rackspace/action/list_servers.rb |