Class: Vtk::Commands::Scan

Inherits:
Thor
  • Object
show all
Defined in:
lib/vtk/commands/scan.rb,
lib/vtk/commands/scan/repo.rb,
lib/vtk/commands/scan/actions.rb,
lib/vtk/commands/scan/machine.rb,
lib/vtk/commands/scan/credentials.rb

Overview

Security scanning commands for developer machines and repositories

Defined Under Namespace

Classes: Actions, Credentials, Machine, Repo

Instance Method Summary collapse

Instance Method Details

#actionsObject



95
96
97
98
99
100
101
102
103
# File 'lib/vtk/commands/scan.rb', line 95

def actions
  if options[:help]
    invoke :help, ['actions']
  else
    require_relative 'scan/actions'
    exit_status = Vtk::Commands::Scan::Actions.new(options).execute
    exit exit_status
  end
end

#credentialsObject



64
65
66
67
68
69
70
71
72
# File 'lib/vtk/commands/scan.rb', line 64

def credentials
  if options[:help]
    invoke :help, ['credentials']
  else
    require_relative 'scan/credentials'
    exit_status = Vtk::Commands::Scan::Credentials.new(options).execute
    exit exit_status
  end
end

#machineObject



22
23
24
25
26
27
28
29
30
# File 'lib/vtk/commands/scan.rb', line 22

def machine
  if options[:help]
    invoke :help, ['machine']
  else
    require_relative 'scan/machine'
    exit_status = Vtk::Commands::Scan::Machine.new(options).execute
    exit exit_status
  end
end

#repo(path = nil) ⇒ Object



47
48
49
50
51
52
53
54
55
# File 'lib/vtk/commands/scan.rb', line 47

def repo(path = nil)
  if options[:help]
    invoke :help, ['repo']
  else
    require_relative 'scan/repo'
    exit_status = Vtk::Commands::Scan::Repo.new(path, options).execute
    exit exit_status
  end
end