Sha256: e4a7ce49c5adfefa8af8c73d5154f7975c6f3afb33ae60d0e462d1767d6f73f2

Contents?: true

Size: 916 Bytes

Versions: 7

Compression:

Stored size: 916 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

      class Mock

        def start_instances(instance_id)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/aws/start_instances.rb
fog-0.5.0 lib/fog/compute/requests/aws/start_instances.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/aws/start_instances.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/aws/start_instances.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/aws/start_instances.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/aws/start_instances.rb
fog-0.4.1 lib/fog/compute/requests/aws/start_instances.rb