Class: Toys::Templates::Clean
- Inherits:
-
Object
- Object
- Toys::Templates::Clean
- Includes:
- Toys::Template
- Defined in:
- lib/toys/templates/clean.rb
Overview
A template for tools that clean build artifacts
Constant Summary collapse
- DEFAULT_TOOL_NAME =
Default tool name
"clean"
Instance Attribute Summary collapse
-
#context_directory ⇒ String
writeonly
Custom context directory for this tool.
-
#name ⇒ String
writeonly
Name of the tool to create.
-
#paths ⇒ Array<String>
writeonly
An array of glob patterns indicating what to clean.
Instance Method Summary collapse
-
#initialize(name: nil, paths: [], context_directory: nil) ⇒ Clean
constructor
Create the template settings for the Clean template.
Methods included from Toys::Template
Constructor Details
#initialize(name: nil, paths: [], context_directory: nil) ⇒ Clean
Create the template settings for the Clean template.
29 30 31 32 33 |
# File 'lib/toys/templates/clean.rb', line 29 def initialize(name: nil, paths: [], context_directory: nil) @name = name @paths = paths @context_directory = context_directory end |
Instance Attribute Details
#context_directory=(value) ⇒ String
Custom context directory for this tool.
57 58 59 |
# File 'lib/toys/templates/clean.rb', line 57 def context_directory=(value) @context_directory = value end |
#name=(value) ⇒ String
Name of the tool to create.
41 42 43 |
# File 'lib/toys/templates/clean.rb', line 41 def name=(value) @name = value end |
#paths=(value) ⇒ Array<String>
An array of glob patterns indicating what to clean.
49 50 51 |
# File 'lib/toys/templates/clean.rb', line 49 def paths=(value) @paths = value end |