Sha256: 270b8694d6ebf16c0f571d1394ca8dffa5eda97ad23bc313bbd7515b2ef89eff
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
class AwesomeJob < SimpleWorker::Base merge_gem 'dropbox' # , '1.2.3' # bumpdsfsdfdsfasdf merge_gem 'mongoid_i18n', :require => 'mongoid/i18n' def run begin s = Dropbox::Session.new('...', '...') rescue => ex log "Dropbox doesn't like it when you don't have keys" end # s.mode = :dropbox # s.authorizing_user = 'email@gmail.com' # s.authorizing_password = '...' # s.authorize! # # tmp_file = Tempfile.new('myfile.txt') # tmp_file.write("blahblah") # tmp_file.close # # s.upload tmp_file.path, 'Test' # tmp_file.unlink end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_worker-0.5.8 | test/awesome_job.rb |