Class: Racf::Pagers::IspfPager

Inherits:
Object
  • Object
show all
Defined in:
lib/racf/pagers/ispf_pager.rb

Constant Summary collapse

ISPF_INPUT_LIMIT =

From the ISPF command shell help, restrictions part: “(234 characters is the maximum allowed, including command name)” Setting that constant limit should deal with that restriction

20

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ IspfPager

Returns a new instance of IspfPager.



9
10
11
# File 'lib/racf/pagers/ispf_pager.rb', line 9

def initialize(command)
  @command = command
end

Instance Method Details

#run(*arguments) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/racf/pagers/ispf_pager.rb', line 13

def run(*arguments)
  resources = @command.extract_resources(arguments)

  if resources.empty?
    @command.run(*arguments)
  else
    paginated(arguments, resources)
  end
end