Sha256: aaccfc3a70a0fdca6e640af582cdb8a4294ab1c66b937ac3680ee9d5d017cca1

Contents?: true

Size: 797 Bytes

Versions: 8

Compression:

Stored size: 797 Bytes

Contents

module Fog
  module AWS
    class Compute
      class Real

        require 'fog/compute/parsers/aws/start_stop_instances'

        # Start specified instance
        #
        # ==== Parameters
        # * instance_id<~Array> - Id of instance to start
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'requestId'<~String> - Id of request
        #     * TODO: fill in the blanks
        def start_instances(instance_id)
          params = AWS.indexed_param('InstanceId', instance_id)
          request({
            'Action'    => 'StartInstances',
            :idempotent => true,
            :parser     => Fog::Parsers::AWS::Compute::StartStopInstances.new
          }.merge!(params))
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-0.8.1 lib/fog/compute/requests/aws/start_instances.rb
fog-0.8.0 lib/fog/compute/requests/aws/start_instances.rb
fog-0.7.2 lib/fog/compute/requests/aws/start_instances.rb
fog-0.7.1 lib/fog/compute/requests/aws/start_instances.rb
fog-0.7.0 lib/fog/compute/requests/aws/start_instances.rb
fog-0.6.0 lib/fog/compute/requests/aws/start_instances.rb
fog-0.5.3 lib/fog/compute/requests/aws/start_instances.rb
fog-0.5.2 lib/fog/compute/requests/aws/start_instances.rb