Skip to content

Commit

Permalink
Added processed_url method for retrieving the URL for a given object ID
Browse files Browse the repository at this point in the history
  • Loading branch information
T.J. VanSlyke committed May 9, 2011
1 parent bbb36a5 commit 03b1db3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -21,7 +21,7 @@ Jeweler::Tasks.new do |gem|
gem.authors = ["T.J. VanSlyke"]
# Include your dependencies below. Runtime dependencies are required when using your gem,
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
gem.add_runtime_dependency 'redis'
# gem.add_development_dependency 'rspec', '> 1.2.3'
end
Jeweler::RubygemsDotOrgTasks.new
Expand Down
4 changes: 4 additions & 0 deletions lib/juggler.rb
Expand Up @@ -41,6 +41,10 @@ def self.processed_bucket
AWS::S3::Bucket.find(self.config['processed_bucket_name'])
end

def self.processed_url(id)
"http://#{self.config['processed_bucket_name']}.s3.amazonaws.com/#{id}"
end

def self.queue
queue_bucket.objects.reject {|o| o.path.include?("---LOCKED---")}
end
Expand Down

0 comments on commit 03b1db3

Please sign in to comment.