Skip to content

Commit

Permalink
Image sucker.
Browse files Browse the repository at this point in the history
  • Loading branch information
futurechimp committed Jun 11, 2011
1 parent 0c3a660 commit c4ce045
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions daemons/image_sucker.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
require 'rubygems'
require 'eventmachine'
require 'mongoid'
require 'carrierwave'
PADRINO_ENV = ENV["PADRINO_ENV"] ||= ENV["RACK_ENV"] ||= "development" unless defined?(PADRINO_ENV)
PADRINO_ROOT = File.expand_path('../..', __FILE__) unless defined?(PADRINO_ROOT)

# Load our dependencies
require 'rubygems' unless defined?(Gem)
require 'bundler/setup'
Bundler.require(:default, PADRINO_ENV)

# require 'eventmachine'
# require 'mongoid'
# require 'carrierwave'
require 'carrierwave/orm/mongoid'
require 'fastimage'
require 'state_machine'
# require 'fastimage'
# require 'state_machine'

# Connection.new takes host, port
host = 'localhost'
Expand Down Expand Up @@ -44,5 +51,5 @@ def download_images_for_feed_items
end
end

puts "image_sucker loaded"
end

0 comments on commit c4ce045

Please sign in to comment.