Class: Tap::Tasks::Argv

Inherits:
Tap::Task
  • Object
show all
Defined in:
lib/tap/tasks/argv.rb

Overview

:startdoc::task provides a handle to ARGV

Simply returns ARGV. This task can be a useful hook when executing saved workflows via run (given that all arguments after the workflow file are preserved in ARGV).

# [workflow.yml]
# - - argv
# - - dump/yaml
# - 0[1]

% tap run -w workflow.yml a b c
---
- a
- b
- c

Instance Method Summary collapse

Instance Method Details

#processObject

Simply returns ARGV.



25
26
27
# File 'lib/tap/tasks/argv.rb', line 25

def process
  ARGV
end