Class: APTDistsMerge::CommandLine

Inherits:
Object
  • Object
show all
Defined in:
lib/apt-dists-merge/command-line.rb

Instance Method Summary collapse

Constructor Details

#initialize(output = nil) ⇒ CommandLine

Returns a new instance of CommandLine.



7
8
9
10
11
12
# File 'lib/apt-dists-merge/command-line.rb', line 7

def initialize(output=nil)
  @base_dir = nil
  @incomping_dir = nil
  @output_dir = nil
  @output = output || "-"
end

Instance Method Details

#run(args) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/apt-dists-merge/command-line.rb', line 14

def run(args)
  catch do |tag|
    open_output do |output|
      parse_args(args, output, tag)
      process
    end
  end
end