Sha256: fbacef0dd2b9e14992d97e9c76abaebc680d1feb2971f3ec47ee02f09c8a9619
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
module VagrantPlugins module ProfitBricks module Action class ListInterfaces def initialize(app, env) @app = app end def call(env) compute_service = env[:profitbricks_compute] env[:ui].info ('%-36s %-24s %s' % ['Lan Id', 'NIC IPs', 'Internet']) compute_service.interfaces.sort_by(&:server_id).each do |network| env[:ui].info ('%-36s %-24s %s' % [network.lan_id, network.ips, network.internet_access]) end @app.call(env) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-profitbricks-1.0.0 | lib/vagrant-profitbricks/action/list_networks.rb |