Class: FindT::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/find_t/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(args, root_path) ⇒ CLI

Returns a new instance of CLI.



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/find_t/cli.rb', line 9

def initialize(args, root_path)
  @root_path = root_path

  parse_options! args

  @scanner = Scanner.new(
    root_path: @root_path,
    rails:     @options['rails'],
  )

  run
end