Class: AWSCDK::FingerprintOptions
- Inherits:
-
CopyOptions
- Object
- CopyOptions
- AWSCDK::FingerprintOptions
- Defined in:
- fingerprint_options.rb
Overview
Options related to calculating source hash.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exclude ⇒ Array<String>?
readonly
File paths matching the patterns will be excluded.
-
#extra_hash ⇒ String?
readonly
Extra information to encode into the fingerprint (e.g. build instructions and other inputs).
-
#follow ⇒ AWSCDK::SymlinkFollowMode?
readonly
A strategy for how to handle symlinks.
-
#ignore_mode ⇒ AWSCDK::IgnoreMode?
readonly
The ignore behavior to use for
excludepatterns.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exclude: nil, follow: nil, ignore_mode: nil, extra_hash: nil) ⇒ FingerprintOptions
constructor
A new instance of FingerprintOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exclude: nil, follow: nil, ignore_mode: nil, extra_hash: nil) ⇒ FingerprintOptions
Returns a new instance of FingerprintOptions.
11 12 13 14 15 16 17 18 19 20 |
# File 'fingerprint_options.rb', line 11 def initialize(exclude: nil, follow: nil, ignore_mode: nil, extra_hash: nil) @exclude = exclude Jsii::Type.check_type(@exclude, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "exclude") unless @exclude.nil? @follow = follow Jsii::Type.check_type(@follow, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TeW1saW5rRm9sbG93TW9kZSJ9")), "follow") unless @follow.nil? @ignore_mode = ignore_mode Jsii::Type.check_type(@ignore_mode, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JZ25vcmVNb2RlIn0=")), "ignoreMode") unless @ignore_mode.nil? @extra_hash = extra_hash Jsii::Type.check_type(@extra_hash, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "extraHash") unless @extra_hash.nil? end |
Instance Attribute Details
#exclude ⇒ Array<String>? (readonly)
Default: - nothing is excluded
File paths matching the patterns will be excluded.
See ignore_mode to set the matching behavior.
Has no effect on Assets bundled using the bundling property.
29 30 31 |
# File 'fingerprint_options.rb', line 29 def exclude @exclude end |
#extra_hash ⇒ String? (readonly)
Default: - hash is only based on source content
Extra information to encode into the fingerprint (e.g. build instructions and other inputs).
44 45 46 |
# File 'fingerprint_options.rb', line 44 def extra_hash @extra_hash end |
#follow ⇒ AWSCDK::SymlinkFollowMode? (readonly)
Default: SymlinkFollowMode.NEVER
A strategy for how to handle symlinks.
34 35 36 |
# File 'fingerprint_options.rb', line 34 def follow @follow end |
#ignore_mode ⇒ AWSCDK::IgnoreMode? (readonly)
Default: IgnoreMode.GLOB
The ignore behavior to use for exclude patterns.
39 40 41 |
# File 'fingerprint_options.rb', line 39 def ignore_mode @ignore_mode end |
Class Method Details
.jsii_properties ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'fingerprint_options.rb', line 46 def self.jsii_properties { :exclude => "exclude", :follow => "follow", :ignore_mode => "ignoreMode", :extra_hash => "extraHash", } end |
Instance Method Details
#to_jsii ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 |
# File 'fingerprint_options.rb', line 55 def to_jsii result = {} result.merge!(super) result.merge!({ "exclude" => @exclude, "follow" => @follow, "ignoreMode" => @ignore_mode, "extraHash" => @extra_hash, }) result.compact end |