class
Shards::Commands::RunScript
- Shards::Commands::RunScript
- Shards::Command
- Reference
- Object
Overview
Runs postinstall scripts that are pending or have changed since last execution.
When called without arguments, runs all pending scripts. When given shard names, runs only those specific scripts.
This command exists because postinstall scripts only auto-run on first
install. If a script changes during shards update, the user must
explicitly run it with this command.
Defined in:
commands/run_script.crInstance Method Summary
-
#run(shard_names : Array(String))
Runs postinstall scripts for the specified shards, or all pending if none given.
Instance methods inherited from class Shards::Command
check_crystal_version(packages)
check_crystal_version,
check_symlink_privilege
check_symlink_privilege,
handle_resolver_errors(&)
handle_resolver_errors,
lockfile?
lockfile?,
lockfile_path : String
lockfile_path,
locks
locks,
override
override,
override_path : String | Nil
override_path,
path : String
path,
spec
spec,
spec_filename
spec_filename,
spec_path : String
spec_path,
touch_install_path
touch_install_path,
write_lockfile(packages)
write_lockfile
Constructor methods inherited from class Shards::Command
new(path)
new
Class methods inherited from class Shards::Command
run(path, *args, **kwargs)
run
Instance Method Detail
def run(shard_names : Array(String))
#
Runs postinstall scripts for the specified shards, or all pending if none given.