Class: Foobara::Generators::OrganizationGenerator::GenerateOrganization
- Defined in:
- foobara-organization-generator-0.0.2/src/generate_organization.rb
Defined Under Namespace
Classes: MissingManifestError
Constant Summary
Constants included from TruncatedInspect
Instance Attribute Summary collapse
-
#manifest_data ⇒ Object
Returns the value of attribute manifest_data.
Attributes inherited from Generate
Attributes included from CommandPatternImplementation::Concerns::Subcommands
Attributes included from CommandPatternImplementation::Concerns::Runtime
Attributes included from CommandPatternImplementation::Concerns::Errors
Attributes included from CommandPatternImplementation::Concerns::Inputs
Instance Method Summary collapse
- #add_initial_elements_to_generate ⇒ Object
- #base_generator ⇒ Object
- #execute ⇒ Object
- #organization_config ⇒ Object
-
#templates_dir ⇒ Object
TODO: delegate this to base_generator.
Methods inherited from Generate
#each_element_to_generate, #elements_to_generate, #generate_element, #generated, #generated_elements, #include_non_templated_files, #paths_to_source_code
Methods inherited from Command
Methods included from Concern
foobara_class_methods_module_for, foobara_concern?, included
Methods included from CommandPatternImplementation::Concerns::Reflection
Methods included from CommandPatternImplementation::Concerns::DomainMappers
#domain_map, #domain_map!, #run_mapped_subcommand!
Methods included from CommandPatternImplementation::Concerns::Subcommands
#run_subcommand!, #subcommand?
Methods included from CommandPatternImplementation::Concerns::Entities
Methods included from CommandPatternImplementation::Concerns::Transactions
#auto_detect_current_transactions, #commit_transaction, #open_transaction, #opened_transactions, #relevant_entity_classes, #rollback_transaction, #transactions
Methods included from CommandPatternImplementation::Concerns::StateMachine
Methods included from CommandPatternImplementation::Concerns::Runtime
#halt!, #run, #run!, #run_execute, #succeed, #success?, #validate, #validate_records
Methods included from CommandPatternImplementation::Concerns::Errors
Methods included from CommandPatternImplementation::Concerns::Inputs
#cast_and_validate_inputs, #initialize, #method_missing, #respond_to_missing?, #respond_to_missing_for_inputs?
Methods included from TruncatedInspect
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Foobara::CommandPatternImplementation::Concerns::Inputs
Instance Attribute Details
#manifest_data ⇒ Object
Returns the value of attribute manifest_data.
25 26 27 |
# File 'foobara-organization-generator-0.0.2/src/generate_organization.rb', line 25 def manifest_data @manifest_data end |
Instance Method Details
#add_initial_elements_to_generate ⇒ Object
39 40 41 |
# File 'foobara-organization-generator-0.0.2/src/generate_organization.rb', line 39 def add_initial_elements_to_generate elements_to_generate << organization_config end |
#base_generator ⇒ Object
27 28 29 |
# File 'foobara-organization-generator-0.0.2/src/generate_organization.rb', line 27 def base_generator Generators::OrganizationGenerator end |
#execute ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'foobara-organization-generator-0.0.2/src/generate_organization.rb', line 15 def execute add_initial_elements_to_generate each_element_to_generate do generate_element end paths_to_source_code end |
#organization_config ⇒ Object
43 44 45 |
# File 'foobara-organization-generator-0.0.2/src/generate_organization.rb', line 43 def organization_config @organization_config ||= OrganizationConfig.new(inputs) end |
#templates_dir ⇒ Object
TODO: delegate this to base_generator
32 33 34 35 36 37 |
# File 'foobara-organization-generator-0.0.2/src/generate_organization.rb', line 32 def templates_dir # TODO: implement this? # :nocov: "#{__dir__}/../templates" # :nocov: end |