Shards
Constants
BUILD_DATE = ""
BUILD_SHA1 = {{ (env("SHARDS_CONFIG_BUILD_COMMIT")) || "" }}
BUILTIN_COMMANDS = ["build", "run", "check", "init", "install", "list", "lock", "outdated", "prune", "update", "version"] of ::String
DEFAULT_COMMAND = "install"
DEFAULT_VERSION = "0"
FORMATTER = ::Log::Formatter.new do |entry, io|
message = entry.message
package_name = entry.context[:package]?
if @@colors
if package_name && entry.severity <= ::Log::Severity::Debug
((io << "[") << (package_name.colorize(:blue)).to_s) << "] "
end
io << (if color = LOGGER_COLORS[entry.severity]?
if idx = message.index(' ')
(message[0...idx].colorize(color)).to_s + message[idx..-1]
else
message.colorize(color)
end
else
message
end)
else
(io << entry.severity.label[0]) << ": "
if package_name && entry.severity <= ::Log::Severity::Debug
((io << "[") << package_name) << "] "
end
io << message
end
end
INSTALL_DIR = "lib"
LOCK_FILENAME = "shard.lock"
Log = ::Log.for(self)
LOGGER_COLORS = {::Log::Severity::Error => :red, ::Log::Severity::Warn => :yellow, ::Log::Severity::Info => :green, ::Log::Severity::Debug => :light_gray}
OVERRIDE_FILENAME = "shard.override.yml"
SPEC_FILENAME = "shard.yml"
VERSION = {{ (read_file("/tmp/tmp.MHeOpa/src/src/../VERSION")).chomp }}
VERSION_AT_FOSSIL_COMMIT = /^(\d+[-.][-.a-zA-Z\d]+)\+fossil\.commit\.([0-9a-f]+)$/
VERSION_AT_GIT_COMMIT = /^(\d+[-.][-.a-zA-Z\d]+)\+git\.commit\.([0-9a-f]+)$/
VERSION_AT_HG_COMMIT = /^(\d+[-.][-.a-zA-Z\d]+)\+hg\.commit\.([0-9a-f]+)$/
VERSION_REFERENCE = /^v?\d+[-.][-.a-zA-Z\d]+$/
VERSION_TAG = /^v(\d+[-.][-.a-zA-Z\d]+)$/
Class methods
bin_path
Sourcecache_path
Sourcecheck_and_install_dependencies(path)
Sourcecli_options
Sourcecolors?
Sourcecrystal_bin
Sourcecrystal_version
Sourcedisplay_help_and_exit(opts)
Sourcefrozen=(frozen)
Sourcefrozen?
Sourceglobal_override_filename
Sourceinfo
Sourceinstall_path
Sourcejobs
Sourcelocal=(local)
Sourcelocal?
Sourceparse_args(args)
Sourcerun
Sourcerun_shards_subcommand(process_name, args)
Sourceset_debug_log_level
Sourceset_warning_log_level
Sourceskip_executables=(skip_executables)
Sourceskip_executables?
Sourceskip_postinstall=(skip_postinstall)
Sourceskip_postinstall?
Sourceversion_string
Sourcewith_development=(with_development)
Sourcewith_development?
SourceNested types
- Shards::Any
- Shards::Command
- Shards::Commands
- Shards::Conflict
- Shards::CrystalResolver
- Shards::Dependency
- Shards::Error
- Shards::FossilBranchRef
- Shards::FossilCommitRef
- Shards::FossilRef
- Shards::FossilResolver
- Shards::FossilTagRef
- Shards::FossilTrunkRef
- Shards::GitBranchRef
- Shards::GitCommitRef
- Shards::GitHeadRef
- Shards::GitRef
- Shards::GitResolver
- Shards::GitTagRef
- Shards::Helpers
- Shards::HgBookmarkRef
- Shards::HgBranchRef
- Shards::HgCommitRef
- Shards::HgCurrentRef
- Shards::HgRef
- Shards::HgResolver
- Shards::HgTagRef
- Shards::Info
- Shards::InvalidLock
- Shards::Lock
- Shards::LockConflict
- Shards::MolinilloSolver
- Shards::Override
- Shards::Package
- Shards::ParseError
- Shards::PathResolver
- Shards::Ref
- Shards::Requirement
- Shards::Resolver
- Shards::Script
- Shards::Spec
- Shards::Target
- Shards::Version
- Shards::VersionReq
- Shards::Versions