Sha256: 220bac24814881b050d05389fe2654b050b36349466f76b85f1895e4409ab533

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

class Service
  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.2 app/models/service/ec2.rb
jellyfish-aws-0.0.1 app/models/service/ec2.rb