Class: AWSCDK::FileCopyOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FileCopyOptions
- Defined in:
- file_copy_options.rb
Overview
Options applied when copying directories into the staging location.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exclude ⇒ Array<String>?
readonly
File paths matching the patterns will be excluded.
-
#follow_symlinks ⇒ 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_symlinks: nil, ignore_mode: nil) ⇒ FileCopyOptions
constructor
A new instance of FileCopyOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exclude: nil, follow_symlinks: nil, ignore_mode: nil) ⇒ FileCopyOptions
Returns a new instance of FileCopyOptions.
10 11 12 13 14 15 16 17 |
# File 'file_copy_options.rb', line 10 def initialize(exclude: nil, follow_symlinks: nil, ignore_mode: nil) @exclude = exclude Jsii::Type.check_type(@exclude, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "exclude") unless @exclude.nil? @follow_symlinks = follow_symlinks Jsii::Type.check_type(@follow_symlinks, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TeW1saW5rRm9sbG93TW9kZSJ9")), "followSymlinks") unless @follow_symlinks.nil? @ignore_mode = ignore_mode Jsii::Type.check_type(@ignore_mode, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JZ25vcmVNb2RlIn0=")), "ignoreMode") unless @ignore_mode.nil? end |
Instance Attribute Details
#exclude ⇒ Array<String>? (readonly)
Note:
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.
26 27 28 |
# File 'file_copy_options.rb', line 26 def exclude @exclude end |
#follow_symlinks ⇒ AWSCDK::SymlinkFollowMode? (readonly)
Note:
Default: SymlinkFollowMode.NEVER
A strategy for how to handle symlinks.
31 32 33 |
# File 'file_copy_options.rb', line 31 def follow_symlinks @follow_symlinks end |
#ignore_mode ⇒ AWSCDK::IgnoreMode? (readonly)
Note:
Default: IgnoreMode.GLOB
The ignore behavior to use for exclude patterns.
36 37 38 |
# File 'file_copy_options.rb', line 36 def ignore_mode @ignore_mode end |
Class Method Details
.jsii_properties ⇒ Object
38 39 40 41 42 43 44 |
# File 'file_copy_options.rb', line 38 def self.jsii_properties { :exclude => "exclude", :follow_symlinks => "followSymlinks", :ignore_mode => "ignoreMode", } end |
Instance Method Details
#to_jsii ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'file_copy_options.rb', line 46 def to_jsii result = {} result.merge!({ "exclude" => @exclude, "followSymlinks" => @follow_symlinks, "ignoreMode" => @ignore_mode, }) result.compact end |