Sha256: 38ed6249b91d778f451fb3d397322acba092767129f5ca697f4fb17ea745bbde

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

#   Mail.defaults do
#     delivery_method :smtp, { :address              => "smtp.me.com",
#                              :port                 => 587,
#                              :domain               => 'your.host.name',
#                              :user_name            => '<username>',
#                              :password             => '<password>',
#                              :authentication       => 'plain',
#                              :enable_starttls_auto => true  }
#   end

Mail.defaults do
  delivery_method :smtp, { :address => "smtp.free.fr" }
end

# Rivendell::API::Xport.debug_output $stdout

Rivendell::Import::Notifier::Mail.from = "root@tryphon.eu"

Rivendell::Import.config do |config|
  config.rivendell.host = "localhost"
  config.rivendell.login_name = "user"
  config.rivendell.password = ""

  config.rivendell.db_url = 'mysql://rduser:letmein@localhost/Rivendell'

  config.to_prepare do |file|
    # task.cancel!

    cart.default_title = file.basename

    file.in("music") do
      cart.group = "MUSIC"
    end

    file.in("pad") do
      name = file.basename
      if name.match /-lundi$/
        cart.cut.days = %w{mon}
        name.gsub! /-lundi$/, ""
      end

      cart.clear_cuts!
      cart.find_by_title name
      cart.cut.description = file.basename
    end

    cart.group ||= "TEST"

    # To delete file when task is completed
    #task.delete_file!

    # notify 'alban@tryphon.eu', :by => :email
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rivendell-import-1.04 examples/config.rb
rivendell-import-1.03 examples/config.rb
rivendell-import-1.02 examples/config.rb
rivendell-import-1.01 examples/config.rb