module Crun

Defined in:

build.cr
cache.cr
config.cr
crun.cr
errors.cr
lock.cr
shards.cr
version.cr

Constant Summary

ARGS = ARGV.size > 1 ? ARGV[1..ARGV.size] : [] of String
CLEAN_CACHE_DAYS = ENV["CRUN_CLEAN_CACHE_DAYS"]?.try do |v| v.as?(Int32) end || 7
SHARDS_END_ANCHOR = Regex.escape(ENV.fetch("CRUN_SHARDS_END_ANCHOR", "..."))
SHARDS_START_ANCHOR = Regex.escape(ENV.fetch("CRUN_SHARDS_START_ANCHOR", "---"))
SOURCE = ARGV[0]?.try do |source| File.expand_path(source) end || ""
SOURCE_FILENAME = File.basename(SOURCE)
VERSION = "1.0.2"

Class Method Summary

Class Method Detail

def self.build_dir #

[View source]
def self.build_name(path : String) #

[View source]
def self.build_path #

[View source]
def self.build_shards_config #

[View source]
def self.cache_path #

[View source]
def self.cache_path=(path : String) #

[View source]
def self.clean_cache #

[View source]
def self.lockfile_path #

[View source]
def self.run #

[View source]
def self.shards_config_path #

[View source]
def self.shards_yaml #

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

[View source]