Sha256: f57cc047a64435e710df3d37b093fd7bf436dc1f34ebe89eda2324d957e50a91
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
module VagrantPlugins module Rackspace module Action class ListKeyPairs def initialize(app, env) @app = app end def call(env) compute_service = env[:rackspace_compute] env[:ui].info ('%s' % ['KeyPair Name']) compute_service.key_pairs.sort_by(&:name).each do |keypair| env[:ui].info ('%s' % [keypair.name]) 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_keypairs.rb |