Class: Package::Audit::CLI
- Inherits:
-
Thor
- Object
- Thor
- Package::Audit::CLI
show all
- Defined in:
- lib/package/audit/cli.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(command, *args) ⇒ Object
74
75
76
|
# File 'lib/package/audit/cli.rb', line 74
def method_missing(command, *args)
invoke :default, [command], args
end
|
Class Method Details
.exit_on_failure? ⇒ Boolean
70
71
72
|
# File 'lib/package/audit/cli.rb', line 70
def self.exit_on_failure?
true
end
|
Instance Method Details
#default(dir = Dir.pwd) ⇒ Object
40
41
42
|
# File 'lib/package/audit/cli.rb', line 40
def default(dir = Dir.pwd)
within_rescue_block { exit CommandParser.new(dir, options, Enum::Report::ALL).run }
end
|
#deprecated(dir = Dir.pwd) ⇒ Object
#outdated(dir = Dir.pwd) ⇒ Object
#respond_to_missing? ⇒ Boolean
78
79
80
|
# File 'lib/package/audit/cli.rb', line 78
def respond_to_missing?
true
end
|
#version ⇒ Object
66
67
68
|
# File 'lib/package/audit/cli.rb', line 66
def version
puts "package-audit #{VERSION}"
end
|
#vulnerable(dir = Dir.pwd) ⇒ Object