Skip to content

Instantly share code, notes, and snippets.

View mbuhot's full-sized avatar

Mike Buhot mbuhot

View GitHub Profile
@danhawkins
danhawkins / command.ex
Created September 7, 2022 04:31
Command macro
defmodule Cmd.Command do
@moduledoc """
Utility for command definition, wrapping a design pattern into code
For our commands we will used type_embedded_schema to design an in memory schema
which will be used for the command payload
As well as this we require the developer to implement a changeset/2 function
"""
#!/bin/sh
#
# /etc/rc.d/init.d/<servicename>
#
# Daemon for hubot
#
# description: Docker container for hubot
### BEGIN INIT INFO
# Provides: docker-hubot