Class: AppMap::Command::Index

Inherits:
NodeCLI show all
Defined in:
lib/appmap/command/index.rb

Constant Summary

Constants inherited from NodeCLI

NodeCLI::APPMAP_JS

Instance Attribute Summary

Attributes inherited from NodeCLI

#appmap_dir, #verbose

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NodeCLI

#command, #detect_nodejs, #index_appmaps, #initialize

Constructor Details

This class inherits a constructor from AppMap::NodeCLI

Class Method Details

.runObject



8
9
10
11
# File 'lib/appmap/command/index.rb', line 8

def run
  command = Index.new(verbose: ENV['DEBUG'] == 'true')
  command.index(ARGV)
end

Instance Method Details

#index(arguments) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/appmap/command/index.rb', line 14

def index(arguments)
  detect_nodejs

  arguments.unshift 'index'
  arguments.unshift APPMAP_JS
  arguments.unshift 'npx'

  exec(*arguments)
end