Skip to content

Instantly share code, notes, and snippets.

View Combos93's full-sized avatar
🏠
Working from home

Mikhail Berkovich Combos93

🏠
Working from home
View GitHub Profile
@Combos93
Combos93 / cloud.mail.ru-webdav-ubuntu-20.04.md
Created September 3, 2024 14:56 — forked from starlinq/cloud.mail.ru-webdav-ubuntu-20.04.md
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
title date
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
2020-10-16

Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04

Инструкцию для Убунту 18.04 см. здесь.

@Combos93
Combos93 / create-ruby-gem-that-adds-rake-tasks.md
Created November 16, 2023 17:11 — forked from ntamvl/create-ruby-gem-that-adds-rake-tasks.md
How to create a Ruby gem that adds Rake tasks

How to create a Ruby gem that adds Rake tasks

Create a gem

One way to do this is to use bundler to scaffold our gem:

bundler gem my_gem

Add rake tasks to our gem

I prefer to put tasks meant to manage the gem itself in lib/tasks, and tasks the gem is meant to provide to gem users in lib/my_gem/tasks.

class SomeEntity
def run
transaction do
mark_non_eligible
make_invoice_batch
send_batch_email
end
end
def transaction