Method: AptControl::CLI::Set#run

Defined in:
lib/apt_control/cli/set.rb

#runObject



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

def run
  validate_config!

  begin
    AptControl::Commands::Set.new(control_file: control_file).
      run(arguments[:distribution], arguments[:package], arguments[:constraint])
  rescue ArgumentError => e
    raise Climate::ExitException, e.message
  end
end