Sha256: 3825940e49d74aabadb6ed308dd572a4f24fe9d368c59714969f74349c0bce99

Contents?: true

Size: 593 Bytes

Versions: 15

Compression:

Stored size: 593 Bytes

Contents

class AudioJob < Struct.new(:audio)
  
  def perform
    asset = Gluttonberg::Asset.find(audio)
    if Gluttonberg::Setting.get_setting("audio_assets") == "Enable"
      if !Gluttonberg::Setting.get_setting("s3_key_id").blank? && !Gluttonberg::Setting.get_setting("s3_access_key").blank? && !Gluttonberg::Setting.get_setting("s3_server_url").blank? && !Gluttonberg::Setting.get_setting("s3_bucket").blank?
        asset.copy_audios_to_s3
      end  
        
    end #setting enabled  
  end
  
  def save_asset_to(asset)
    Rails.root.to_s + "/public" + asset.asset_folder_path
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 lib/audio_job.rb
gluttonberg-core-2.6.3 lib/audio_job.rb
gluttonberg-core-2.6.2 lib/audio_job.rb
gluttonberg-core-2.6.1 lib/audio_job.rb
gluttonberg-core-2.6.0 lib/audio_job.rb
gluttonberg-core-2.5.9 lib/audio_job.rb
gluttonberg-core-2.5.8 lib/audio_job.rb
gluttonberg-core-2.5.7 lib/audio_job.rb
gluttonberg-core-2.5.6 lib/audio_job.rb
gluttonberg-core-2.5.5 lib/audio_job.rb
gluttonberg-core-2.5.4 lib/audio_job.rb
gluttonberg-core-2.5.3 lib/audio_job.rb
gluttonberg-core-2.5.2 lib/audio_job.rb
gluttonberg-core-2.5.1 lib/audio_job.rb
gluttonberg-core-2.5 lib/audio_job.rb