Sha256: 48c90aff5246beadc3c9d55b50c6e0fdde138dc873229709a0fc27ead930b3da

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

class Service < ActiveRecord::Base
  class Ec2 < Service::Compute
    def actions
      actions = super.merge :terminate

      # determine if action is available

      actions
    end

    def provision
=begin
  create key_pair name: service.uuid
  create security group (one per project) name: project-{id}
  create vpc (one per project) name: project-{id}
=end
    end

    def start

    end

    def stop

    end

    def terminate

    end

    private

    def client
      @client ||= provider.settings
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jellyfish-aws-0.0.4 app/models/service/ec2.rb
jellyfish-aws-0.0.3 app/models/service/ec2.rb