Code Monkey home page Code Monkey logo

utility-scripts's Introduction

Turing Utility Scripts

This repository contains a handful of utility scripts used from time to time at Turing. Several have to do with setting up student accounts on heroku or Digital Ocean in an automated way.

Contents

  • provisioner_do.rb - Use Digital Ocean API to create a new Droplet
  • provisioner_do_servers.rb - Uses Provisioner::DO to create a series of student droplets
  • provision_heroku_servers.rb - Use the Heroku API and a list of student github repositories to create new heroku instances and deploy to them
  • generate_outline.rb - Creates outline for student project evaluation

Looking for the Calendar Shifting Script?

It lives in its own repo here

Digital Ocean Provisioner

Reads droplet names from command line args, so you can provide them when running the script like so:

ruby provision_do_servers.rb student-one student-two

It should generate some output like so:

worace @ Guinevere / utility-scripts / master ➸  ruby provision_do_servers.rb kyra-steenbock mac-mccarthy dj-greenfield jeffrey-gu
Provisioned kyra-steenbock: #<RecursiveOpenStruct status="OK", droplet={"id"=>5720571, "name"=>"kyra-steenbock", "image_id"=>11836690, "size_id"=>64, "event_id"=>53473429}>
Provisioned mac-mccarthy: #<RecursiveOpenStruct status="OK", droplet={"id"=>5720573, "name"=>"mac-mccarthy", "image_id"=>11836690, "size_id"=>64, "event_id"=>53473434}>
Provisioned dj-greenfield: #<RecursiveOpenStruct status="OK", droplet={"id"=>5720575, "name"=>"dj-greenfield", "image_id"=>11836690, "size_id"=>64, "event_id"=>53473437}>
Provisioned jeffrey-gu: #<RecursiveOpenStruct status="OK", droplet={"id"=>5720576, "name"=>"jeffrey-gu", "image_id"=>11836690, "size_id"=>64, "event_id"=>53473438}>

utility-scripts's People

Contributors

worace avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.