class
Shards::Policy
- Shards::Policy
- Reference
- Object
Defined in:
policy.crConstant Summary
-
CURRENT_VERSION =
"1"
Constructors
- .from_file(path : String) : self
- .from_yaml(input : String, filename = POLICY_FILENAME) : self
- .new(pull : YAML::PullParser)
- .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)
Instance Method Summary
- #custom : Array(CustomRule)
- #dependencies : DependencyRules
- #freshness : FreshnessRules
- #security : SecurityRules
- #sources : SourceRules
- #version : String
Constructor Detail
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)
#