class Opener::S3Outlet
Constants
- VERSION
Attributes
options[R]
Public Class Methods
bucket()
click to toggle source
# File lib/opener/s3_outlet.rb, line 32 def self.bucket @bucket ||= s3.buckets[bucket_name] end
bucket_name()
click to toggle source
# File lib/opener/s3_outlet.rb, line 36 def self.bucket_name return "opener-outlet" end
dir()
click to toggle source
# File lib/opener/s3_outlet.rb, line 40 def self.dir return "webservice" end
new(options={})
click to toggle source
# File lib/opener/s3_outlet.rb, line 16 def initialize(options={}) @options = options end
s3()
click to toggle source
# File lib/opener/s3_outlet.rb, line 28 def self.s3 @s3 ||= AWS::S3.new end
Public Instance Methods
run(input)
click to toggle source
# File lib/opener/s3_outlet.rb, line 20 def run(input) S3Output.create( options.merge(:text => input, :uuid => options[:request_id]) ) return input end