Class: AptControl::CLI::Include

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/apt_control/cli/include.rb

Instance Method Summary collapse

Methods included from Common

#apt_site, #build_archive, #control_file, #each_package_state, #fs_listener_factory, #jabber, #jabber_enabled?, #logger, #new_include_cmd, #notify, #package_states, #validate_config!

Instance Method Details

#runObject



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

def run
  validate_config!


  new_include_cmd.run(package_states) do |state, version|
    if options[:noop]
      puts "#{state.dist.name} #{state.package_name} #{state.included} => #{version}"
      false
    else
      true
    end
  end
end