Method: Aptly::Mirror#list_packages
- Defined in:
- lib/aptly/mirror.rb
#list_packages ⇒ Object
List all packages contained in a mirror
Returns:
An array of packages
118 119 120 121 122 |
# File 'lib/aptly/mirror.rb', line 118 def list_packages res = [] out = Aptly::runcmd "aptly mirror show -with-packages #{@name.quote}" Aptly::parse_indented_list out.lines end |