Skip to content

Commit

Permalink
WIP modifying scripts for last gSchool-1 assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasimir committed Jun 19, 2014
1 parent 5009f81 commit 3adb036
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/generate_outline.rb
Original file line number Diff line number Diff line change
@@ -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]}"
Expand Down
22 changes: 17 additions & 5 deletions scripts/provision_do_servers.rb
Original file line number Diff line number Diff line change
@@ -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']
Expand Down Expand Up @@ -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")

0 comments on commit 3adb036

Please sign in to comment.