Sha256: bab07d202d3d3696ad28432ca90868a732866306eb52187560a19554b4e4146d

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

#!/usr/bin/env ruby

require 's3repo'
require 'mercenary'

Mercenary.program(:s3repo) do |p|
  p.version S3Repo::VERSION
  p.description 'Package management tool for Archlinux repos'
  p.syntax 's3repo <subcommand> [args]'

  p.command(:build) do |c|
    c.syntax 'build'
    c.description 'Build package files from PKGBUILDs'

    c.action do
      S3Repo.new.build_packages Dir.glob('*/PKGBUILD')
    end
  end

  p.command(:upload) do |c|
    c.syntax 'upload'
    c.description 'Upload packages to repo'

    c.action do
      S3Repo.new.add_packages Dir.glob('*/*.pkg.tar.xz')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
s3repo-0.1.0 bin/s3repo