Class: RogIQ::Remote::Security
- Inherits:
-
CommandBase
- Object
- Thor
- CommandBase
- RogIQ::Remote::Security
- Defined in:
- lib/rogiq/remote/security.rb
Instance Method Summary collapse
Instance Method Details
#audit ⇒ Object
20 21 22 23 |
# File 'lib/rogiq/remote/security.rb', line 20 def audit fmt.error_msg("'security audit' must run locally. Use: ROGIQ_LOCAL=1 rogiq security audit") exit 1 end |
#policy ⇒ Object
9 10 11 |
# File 'lib/rogiq/remote/security.rb', line 9 def policy emit(api.get("/api/v1/cli/security/policy")) end |
#scan ⇒ Object
14 15 16 17 |
# File 'lib/rogiq/remote/security.rb', line 14 def scan fmt.error_msg("'security scan' must run locally (static analysis needs source). Use: ROGIQ_LOCAL=1 rogiq security scan") exit 1 end |