module Sentry

Overview

Default Sentry config that allow recompile and rerun app FILE.

Defined in:

lib/sentry/src/sentry.cr
sentry-run.cr
sentry-run/sentry-config.cr

Constant Summary

BUILD_ARGS = [] of String
BUILD_COMMAND = "crystal build /srv/crystaldoc.info/github-faustinoaq-sentry-run-v0.1.1/src/sentry-run/sentry-config.cr"
FILES = ["src/**/*.cr", "src/**/*.ecr"]
PROCESS_NAME = "App"
RUN_ARGS = [] of String
RUN_COMMAND = "./#{File.basename("/srv/crystaldoc.info/github-faustinoaq-sentry-run-v0.1.1/src/sentry-run/sentry-config.cr", ".cr")}"
SHOULD_BUILD = true

Class Method Summary

Class Method Detail

def self.config(process_name = PROCESS_NAME, build_command = BUILD_COMMAND, run_command = RUN_COMMAND, build_args = BUILD_ARGS, run_args = RUN_ARGS, files = FILES, should_build = SHOULD_BUILD) #

[View source]
def self.run(&) #

Check if sentry.lock exists then yield a block If it doesn't exist then create a lock and execute a Sentry process. When a Sentry process is finished the sentry.lock file is deleted because Signal::INT has a trap for Ctrl+C and at_exit is executed.


[View source]