From 3adb036266373025800e4e2921379ddec21061cf Mon Sep 17 00:00:00 2001 From: Jeff Casimir Date: Thu, 19 Jun 2014 08:12:53 -0600 Subject: [PATCH] WIP modifying scripts for last gSchool-1 assignments --- scripts/generate_outline.rb | 2 +- scripts/provision_do_servers.rb | 22 +++++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/scripts/generate_outline.rb b/scripts/generate_outline.rb index 16cf26f66..2e73bce68 100644 --- a/scripts/generate_outline.rb +++ b/scripts/generate_outline.rb @@ -1,4 +1,4 @@ -require_relative '../gschool-1/projects/feed_engine' +require_relative '../gschool-1/projects/services' project.each do |name, values| puts "### #{values[:project_name]}" diff --git a/scripts/provision_do_servers.rb b/scripts/provision_do_servers.rb index 3a10213a6..db6c37216 100644 --- a/scripts/provision_do_servers.rb +++ b/scripts/provision_do_servers.rb @@ -1,6 +1,6 @@ require 'bundler/setup' require 'digitalocean' -require '../gschool-1/projects/feed_engine' +#require '../gschool-1/projects/feed_engine' Digitalocean.client_id = ENV['digital_ocean_client_id'] Digitalocean.api_key = ENV['digital_ocean_api_key'] @@ -28,8 +28,20 @@ def provision_server(name) :region_id => region.id}) end -project.each do |group, data| - name = data[:project_name].downcase.gsub(" ", "") - droplet = provision_server(name) - puts "Provisioned #{name}: #{droplet.inspect}" +# project.each do |group, data| +# name = data[:project_name].downcase.gsub(" ", "") +# droplet = provision_server(name) +# puts "Provisioned #{name}: #{droplet.inspect}" +# end + +def students + ["Antony Siegert", "Ben Horne", "Ben Lewis", "Billy Griffin", "Bree Thomas", "Brian Winterling", "Bryana Knight", "Darryl Pequeen", "George Hudson", "Jonah Moses", "Katrina Engelsted", "Kevin Powell", "Lauren Spath Luhring", "Louisa Barrett", "Luke Martinez", "Magan Adam", "Nathaniel Watts", "Nikhil Taneja", "Persa Zula", "Quentin Tai", "Rolen Le", "Romeeka Gayhart", "Simon Taranto", "Tyler Long", "Will Mitchell"] end + +# students.each do |student| +# name = student.downcase.scan(/\w/).join +# droplet = provision_server(name) +# puts "Provisioned #{name}: #{droplet.inspect}" +# end + +droplet = provision_server("jcasimir")