Sha256: a5ca8b2b8339a521b800be40f23bdb00928ba3555ed10e02181a45ca20a638a5

Contents?: true

Size: 489 Bytes

Versions: 11

Compression:

Stored size: 489 Bytes

Contents

require 'pp'
module Mccloud
  module Util
    def on_selected_machines(selection=nil)
      if selection.nil? || selection == "all"
        #puts "no selection - all machines"
        @session.config.vms.each do |name,vm|
          id=@all_servers["#{name}"]
          vm=@session.config.vms[name]
            yield id,vm
        end
      else
        name=selection
        id=@all_servers["#{name}"]
        vm=@session.config.vms[name]
          yield id,vm
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mccloud-0.0.13 lib/mccloud/util/iterator.rb
mccloud-0.0.12 lib/mccloud/util/iterator.rb
mccloud-0.0.11 lib/mccloud/util/iterator.rb
mccloud-0.0.10 lib/mccloud/util/iterator.rb
mccloud-0.0.9 lib/mccloud/util/iterator.rb
mccloud-0.0.8 lib/mccloud/util/iterator.rb
mccloud-0.0.7 lib/mccloud/util/iterator.rb
mccloud-0.0.6 lib/mccloud/util/iterator.rb
mccloud-0.0.5 lib/mccloud/util/iterator.rb
mccloud-0.0.4 lib/mccloud/util/iterator.rb
mccloud-0.0.3 lib/mccloud/util/iterator.rb