Class: Foobara::CommandConnector::Commands::Describe

Inherits:
Foobara::Command show all
Defined in:
foobara-0.0.110/projects/command_connectors/src/command_connector/commands/describe.rb

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Attribute Summary collapse

Attributes included from Foobara::CommandPatternImplementation::Concerns::Subcommands

#is_subcommand

Attributes included from Foobara::CommandPatternImplementation::Concerns::Runtime

#exception, #outcome

Attributes included from Foobara::CommandPatternImplementation::Concerns::Errors

#error_collection

Attributes included from Foobara::CommandPatternImplementation::Concerns::Inputs

#inputs, #raw_inputs

Instance Method Summary collapse

Methods inherited from Foobara::Command

install!, reset_all

Methods included from Foobara::Concern

foobara_class_methods_module_for, foobara_concern?, included

Methods included from Foobara::CommandPatternImplementation::Concerns::Reflection

#initialize

Methods included from Foobara::CommandPatternImplementation::Concerns::DomainMappers

#domain_map, #domain_map!, #run_mapped_subcommand!

Methods included from Foobara::CommandPatternImplementation::Concerns::Subcommands

#run_subcommand!, #subcommand?

Methods included from Foobara::CommandPatternImplementation::Concerns::Entities

#load_entities, #load_records

Methods included from Foobara::CommandPatternImplementation::Concerns::Transactions

#auto_detect_current_transactions, #commit_transaction, #open_transaction, #opened_transactions, #relevant_entity_classes, #rollback_transaction, #transactions

Methods included from Foobara::CommandPatternImplementation::Concerns::StateMachine

#state_machine

Methods included from Foobara::CommandPatternImplementation::Concerns::Runtime

#halt!, #run, #run!, #run_execute, #succeed, #success?, #validate, #validate_records

Methods included from Foobara::CommandPatternImplementation::Concerns::Errors

#initialize

Methods included from Foobara::CommandPatternImplementation::Concerns::Inputs

#cast_and_validate_inputs, #initialize, #method_missing, #respond_to_missing?, #respond_to_missing_for_inputs?

Methods included from TruncatedInspect

#inspect, truncating

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Foobara::CommandPatternImplementation::Concerns::Inputs

Instance Attribute Details

#manifestObject

Returns the value of attribute manifest.



16
17
18
# File 'foobara-0.0.110/projects/command_connectors/src/command_connector/commands/describe.rb', line 16

def manifest
  @manifest
end

Instance Method Details

#build_manifestObject



18
19
20
# File 'foobara-0.0.110/projects/command_connectors/src/command_connector/commands/describe.rb', line 18

def build_manifest
  self.manifest = manifestable.foobara_manifest
end

#executeObject



9
10
11
12
13
14
# File 'foobara-0.0.110/projects/command_connectors/src/command_connector/commands/describe.rb', line 9

def execute
  build_manifest
  

  manifest
end

#stamp_request_metadataObject



22
23
24
# File 'foobara-0.0.110/projects/command_connectors/src/command_connector/commands/describe.rb', line 22

def 
  manifest[:metadata] = { when: Time.now }
end