Class: Kojo::Commands::SingleCmd
- Inherits:
-
CommandBase
- Object
- MisterBin::Command
- CommandBase
- Kojo::Commands::SingleCmd
- Defined in:
- lib/kojo/commands/single.rb
Overview
Handle calls to the kojo single command
Instance Attribute Summary collapse
-
#infile ⇒ Object
readonly
Returns the value of attribute infile.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#outdir ⇒ Object
readonly
Returns the value of attribute outdir.
Instance Method Summary collapse
Methods inherited from CommandBase
Instance Attribute Details
#infile ⇒ Object (readonly)
Returns the value of attribute infile.
9 10 11 |
# File 'lib/kojo/commands/single.rb', line 9 def infile @infile end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
9 10 11 |
# File 'lib/kojo/commands/single.rb', line 9 def opts @opts end |
#outdir ⇒ Object (readonly)
Returns the value of attribute outdir.
9 10 11 |
# File 'lib/kojo/commands/single.rb', line 9 def outdir @outdir end |
Instance Method Details
#run ⇒ Object
26 27 28 29 30 31 |
# File 'lib/kojo/commands/single.rb', line 26 def run @opts = args['ARGS'].args_to_hash @outdir = args['--save'] @infile = args['INFILE'] run! end |