0.0.17 • Published 11 years ago

fasten v0.0.17

Weekly downloads
4
License
BSD
Repository
github
Last release
11 years ago

Built originally for node-ectwo

class Regions

  ###
  ###
  
  findOne: (search, next) ->
    # find a region, and return it
  

class Image
  
  ###
  ###
  
  createInstance: (options, next) ->
    # create, and return instance
    
  ###
  ###
  
  migrate: (options, next) ->
    # migrate to a new region, and return the image
    
class Instance
  
  ###
  ###
  
  stop: (next) ->
    # stop the instance
    
  ###
  ###
  
  start: (next) ->
    #start the instanc
    

Ironify:

irons = require("irons")()
ectwo = require("ectwo")()

irons.add("instances", {
  "findOne": "instance"
}).add("instance", {
  "shutdown": {
    type: "image",
    
  },
  "createImage": "image"
}).add("image", {
  "migrate": "image",
  "createInstance": "instance"
})

irons.wrap(ectwo.instances, "instances")




# shutdown one instance, migrate it to a new region, and start it up again.
proc = ectwo.
  instances.
  findOne({ tags: { type: "mongodb" } }).
  shutdown().
  migrate({ region: ectwo.regions.findOne({ name: /us-*/}) }).
  createInstance().
  start()
0.0.17

11 years ago

0.0.16

11 years ago

0.0.15

11 years ago

0.0.14

11 years ago

0.0.13

11 years ago

0.0.12

11 years ago

0.0.11

11 years ago

0.0.10

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.3

11 years ago

0.0.0

11 years ago