Class: Vtk::Commands::Scan::Actions
- Inherits:
-
Vtk::Command
- Object
- Vtk::Command
- Vtk::Commands::Scan::Actions
- Defined in:
- lib/vtk/commands/scan/actions.rb
Overview
Trace direct and transitive uses of GitHub Actions across an org. Shells out to gh-action-trace.sh for the actual work.
Constant Summary collapse
- BOOLEAN_FLAGS =
{ external: '--external', quiet: '--quiet', verbose: '--verbose' }.freeze
- VALUE_FLAGS =
{ org: '--org', depth: '--depth', format: '--format', output: '--output', check_runs: '--check-runs' }.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #execute(output: $stdout) ⇒ Object
-
#initialize(options) ⇒ Actions
constructor
A new instance of Actions.
Methods inherited from Vtk::Command
#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(options) ⇒ Actions
Returns a new instance of Actions.
28 29 30 31 |
# File 'lib/vtk/commands/scan/actions.rb', line 28 def initialize() @options = super() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
26 27 28 |
# File 'lib/vtk/commands/scan/actions.rb', line 26 def @options end |
Instance Method Details
#execute(output: $stdout) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/vtk/commands/scan/actions.rb', line 33 def execute(output: $stdout) error = validation_error return error_out(output, error) if error script_path, gem_root = find_script return script_not_found(output, gem_root) unless script_path run_script(script_path) end |