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
Post.fetch # fetch post from remote resources and save to the Post | |
Post::Tumblr.fetch # fetch post from Tumblr and save to the Post |
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 'hoptoad_notifier/capistrano' | |
require 'capistrano/ext/multistage' | |
set :stages, %w(testing staging production) | |
set :default_stage, 'staging' | |
set :use_sudo, false | |
default_run_options[:pty] = true | |
set :scm, :git | |
set :repository, "git@github.com:Turn2Live/turn2live.git" |
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
# ------------------- script | |
#!/bin/sh | |
key=$(git config ssh.key) | |
if [ -z "$key" ]; then | |
git_opts="" | |
else | |
git_opts="-i ${key}" | |
fi |
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
Feature: Facebook authorization | |
In order to moodrate my favourite artists | |
As a user | |
I want to run Moodfish application on facebook page | |
Scenario: Application is running on a facebook | |
Given I am authorized facebook user | |
And I don't have moodfish application on my page | |
When I go to page apps.facebook.com/Moodfish | |
And I click "Allow" |
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
1) | |
Scenario Outline: Crawler slave monitoring | |
Given a crawler master request for a crawler slave's status | |
When the crawler slave returns the <slave status> | |
Then the crawler master should <action> | |
2) | |
Scenario Outline: Crawler slave monitoring | |
Given the crawler slave has status <slave status> | |
When a crawler master request for a crawler slave's status | |
Then the crawler master should <action> |
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 'rubygems' | |
require 'zlib' | |
require 'aws/s3' | |
def parse_cloudfront_line(line) | |
return if line.strip.match(/^#/) | |
bytes = line.split("\t")[5] | |
filename = line.split("\t")[13] | |
info = {:file => filename, :bytes => bytes} | |
info if filename.strip != '-' |
NewerOlder