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

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

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Foobara::Command

install!

Methods included from Foobara::CommandPatternImplementation

install_state_machine_callback_methods

Methods included from TruncatedInspect

#inspect, truncating

Methods included from Foobara::Concern

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
  

  manifest
end

#stamp_request_metadata ⇒ Object



26
27
28
# File 'projects/command_connectors/src/command_connector/commands/describe.rb', line 26

def 
  manifest[:metadata] = { when: Time.now, foobara_version: Foobara::Version::VERSION }
end