Class: ElasticGraph::SchemaDefinition::RakeTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- ElasticGraph::SchemaDefinition::RakeTasks
- Defined in:
- elasticgraph-schema_definition/lib/elastic_graph/schema_definition/rake_tasks.rb
Overview
Note:
Local::RakeTasks wraps this and provides additional functionality. Most users will not need to interact with this class directly.
Defines rake tasks for managing artifacts generated from a schema definition.
Instance Method Summary collapse
-
#initialize(index_document_sizes:, path_to_schema:, schema_artifacts_directory:, schema_element_name_form:, schema_element_name_overrides: {}, derived_type_name_formats: {}, type_name_overrides: {}, enum_value_overrides_by_type: {}, extension_modules: [], enforce_json_schema_version: true, output: $stdout) ⇒ RakeTasks
constructor
A new instance of RakeTasks.
Constructor Details
#initialize(index_document_sizes:, path_to_schema:, schema_artifacts_directory:, schema_element_name_form:, schema_element_name_overrides: {}, derived_type_name_formats: {}, type_name_overrides: {}, enum_value_overrides_by_type: {}, extension_modules: [], enforce_json_schema_version: true, output: $stdout) ⇒ RakeTasks
Returns a new instance of RakeTasks.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/rake_tasks.rb', line 110 def initialize( index_document_sizes:, path_to_schema:, schema_artifacts_directory:, schema_element_name_form:, schema_element_name_overrides: {}, derived_type_name_formats: {}, type_name_overrides: {}, enum_value_overrides_by_type: {}, extension_modules: [], enforce_json_schema_version: true, output: $stdout ) @schema_element_names = SchemaArtifacts::RuntimeMetadata::SchemaElementNames.new( form: schema_element_name_form, overrides: schema_element_name_overrides ) @derived_type_name_formats = derived_type_name_formats @type_name_overrides = type_name_overrides @enum_value_overrides_by_type = enum_value_overrides_by_type @index_document_sizes = index_document_sizes @path_to_schema = path_to_schema @schema_artifacts_directory = schema_artifacts_directory @enforce_json_schema_version = enforce_json_schema_version @extension_modules = extension_modules @output = output define_tasks end |