Class: Kojo::Commands::SingleCmd

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/kojo/commands/single.rb

Overview

Handle calls to the kojo single command

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CommandBase

#save

Instance Attribute Details

#infileObject (readonly)

Returns the value of attribute infile.



9
10
11
# File 'lib/kojo/commands/single.rb', line 9

def infile
  @infile
end

#optsObject (readonly)

Returns the value of attribute opts.



9
10
11
# File 'lib/kojo/commands/single.rb', line 9

def opts
  @opts
end

#outdirObject (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

#runObject



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