Send email asynchroniously using Sidekiq.
Create mailer class:
# app/mailers/user_mailer.rb| #!/bin/bash -xe | |
| function byPosition () { | |
| echo "Variable in position 1: $1" | |
| echo "Variable in position 2: $2" | |
| } | |
| byPosition hola mundo |
| import Component from '@glimmer/component'; | |
| import { action } from '@ember/object'; | |
| import { tracked } from '@glimmer/tracking'; | |
| import { inject as service } from '@ember/service'; | |
| import * as Video from 'twilio-video/dist/twilio-video'; | |
| import { attachTracks } from "../utils/intrati-twilio"; | |
| export default class CreateRoomComponent extends Component { |
| module SaysHi | |
| def self.included(base) | |
| base.extend ClassMethods | |
| end | |
| module ClassMethods | |
| def hi_to | |
| @hi_to ||= "" | |
| end |
| require "csv" | |
| require "sqlite3" | |
| if ARGV.length < 3 | |
| puts "Uso: ruby create_db_from_csv.rb ruta/al/archivo.csv debugging.dashboard.db nombre_tabla" | |
| exit | |
| end | |
| csv_file = ARGV[0] |