Class: Foobara::CommandConnector::Commands::Describe
- Inherits:
-
Foobara::Command
show all
- Defined in:
- foobara-0.6.1/projects/command_connectors/src/command_connector/commands/describe.rb
Constant Summary
TruncatedInspect::MAX_LENGTH
Instance Attribute Summary collapse
Instance Method Summary
collapse
install!
#inspect, truncating
foobara_class_methods_module_for, foobara_concern?, included
Instance Attribute Details
#manifest ⇒ Object
Returns the value of attribute manifest.
20
21
22
|
# File 'projects/command_connectors/src/command_connector/commands/describe.rb', line 20
def manifest
@manifest
end
|
Instance Method Details
#build_manifest ⇒ Object
22
23
24
|
# File 'projects/command_connectors/src/command_connector/commands/describe.rb', line 22
def build_manifest
self.manifest = manifestable.foobara_manifest
end
|
#execute ⇒ Object
13
14
15
16
17
18
|
# File 'projects/command_connectors/src/command_connector/commands/describe.rb', line 13
def execute
build_manifest
stamp_request_metadata
manifest
end
|
26
27
28
|
# File 'projects/command_connectors/src/command_connector/commands/describe.rb', line 26
def stamp_request_metadata
manifest[:metadata] = { when: Time.now, foobara_version: Foobara::Version::VERSION }
end
|