This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"existence": { | |
"encoding": "existence", | |
"pack": "AQAAGpEAAAAIgAf///////////////////////////////////////////////////////////////9+O////////////////9f///////////////////////////////////9/X/////V/////////v/eP//3///////X////////////3/////////////////////////////f////////////3b0f//v///6/R//////f///7fq////f3//D///3xxj///gXi//+rv//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7/////////////////////////////////////////9+////9y/////////////////////////////////////////////////////////////////////////////////////////////////////+///3/+/9//////////////////////////////////9G+/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :monitoring do | |
desc "Query Cloudkick's list of IPs monitoring requests are sent from, then add/remove security group rules as needed" | |
task :setup_security => :environment do | |
# Ignore certificate errors | |
SECURITY_GROUP_NAME = 'monitoring' | |
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE | |
@ec2 = AWS::EC2::Base.new( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'typhoeus' | |
require 'nokogiri' | |
require 'term/ansicolor' | |
class BaseFetcher | |
def self.fetch | |
i = self.new | |
i.fetch | |
return i |