Sha256: ee65e3f89a37585e35d631d90c69df093c20c3b3dfe4a3371e81ede7ca37dfcf

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

module Ruboty
  module Niftycloud
    module Actions
      class ComputingInstanceShow < Base
        def call
          instance_id = message[:instance_id]
          instance = computing.instances.find {|instance| instance['instanceId'] == instance_id }
          instance.each do |k, v|
            message.reply "#{k}: #{v}"
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruboty-niftycloud-0.0.5 lib/ruboty/niftycloud/actions/computing_instance_show.rb
ruboty-niftycloud-0.0.4 lib/ruboty/niftycloud/actions/computing_instance_show.rb
ruboty-niftycloud-0.0.3 lib/ruboty/niftycloud/actions/computing_instance_show.rb
ruboty-niftycloud-0.0.2 lib/ruboty/niftycloud/actions/computing_instance_show.rb
ruboty-niftycloud-0.0.1 lib/ruboty/niftycloud/actions/computing_instance_show.rb