Skip to content

danryan/adept-support

Repository files navigation

Adept

a·dept   [adj. uh-dept; n. ad-ept, uh-dept]

  1. very skilled; proficient; expert: an adept juggler.
  2. synonym for apt: a package manager.

For now, adept is a thin wrapper around reprepro. More to come later.

Installation

Add this line to your application's Gemfile:

gem 'adept'

And then execute:

$ bundle

Or install it yourself as:

$ gem install adept

Usage

require 'adept'

options = {
  :name => "bar",
  :distributions => [
    {
      :origin => "apt.example.com",
      :label => "apt repository for bar",
      :codename => "lucid",
      :arch => %w[ i386 amd64 ],
      :components => %w[ main ],
      :description => "APT repository for internal packages",
      :sign_with => "packages@example.com"
    }
  ]
}

repo = Adept::Repo.init(options)
repo.add("lucid", "/path/to/postgresql-client-9.0_9.0.5-1~lucid_amd64.deb")
repo.list("lucid")
# => lucid|main|amd64: postgresql-client-9.0 9.0.5-1~lucid

About

Support library for Adept

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages