Class: APTDistsMerge::CommandLine
- Inherits:
-
Object
- Object
- APTDistsMerge::CommandLine
- Defined in:
- lib/apt-dists-merge/command-line.rb
Instance Method Summary collapse
-
#initialize(output = nil) ⇒ CommandLine
constructor
A new instance of CommandLine.
- #run(args) ⇒ Object
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 |