Class: AppMap::Command::AgentSetup::Init
- Inherits:
-
InitStruct
- Object
- Struct
- InitStruct
- AppMap::Command::AgentSetup::Init
- Defined in:
- lib/appmap/command/agent_setup/init.rb
Instance Attribute Summary
Attributes inherited from InitStruct
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/appmap/command/agent_setup/init.rb', line 13 def perform config = { 'name' => Service::Guesser.guess_name, 'packages' => Service::Guesser.guess_paths.map { |path| { 'path' => path } }, 'language' => 'ruby', 'appmap_dir' => 'tmp/appmap' } result = { configuration: { filename: config_file, contents: YAML.dump(config) } } puts JSON.pretty_generate(result) end |