Class: PackageCloud::CLI::Entry
- Defined in:
- lib/package_cloud/cli/entry.rb
Instance Method Summary collapse
Instance Method Details
#push(repo, package_file) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/package_cloud/cli/entry.rb', line 16 def push(repo, package_file) ARGV.clear # otherwise gets explodes validator = Validator.new(client) dist_id = validator.distribution_id(repo, package_file) # strip os/dist repo = repo.split("/")[0..1].join("/") print "Looking for repository at #{repo}... " repo = client.repository(repo) print "success!\n" print "Pushing #{package_file}... " repo.create_package(package_file, dist_id) end |