Docs exports: JSON llms.txt llms-full.txt Agent Files

class Shards::Policy

Defined in:

policy.cr

Constant Summary

CURRENT_VERSION = "1"

Constructors

Instance Method Summary

Constructor Detail

def self.from_file(path : String) : self #

[View source]
def self.from_yaml(input : String, filename = POLICY_FILENAME) : self #

[View source]
def self.new(pull : YAML::PullParser) #

[View source]
def self.new(version : String = CURRENT_VERSION, sources : Shards::Policy::SourceRules = SourceRules.new, dependencies : Shards::Policy::DependencyRules = DependencyRules.new, freshness : Shards::Policy::FreshnessRules = FreshnessRules.new, security : Shards::Policy::SecurityRules = SecurityRules.new, custom : Array(Shards::Policy::CustomRule) = [] of CustomRule) #

[View source]

Instance Method Detail

def custom : Array(CustomRule) #

[View source]
def dependencies : DependencyRules #

[View source]
def freshness : FreshnessRules #

[View source]
def security : SecurityRules #

[View source]
def sources : SourceRules #

[View source]
def version : String #

[View source]