Class: FRM::ReleasePusher

Inherits:
Base
  • Object
show all
Defined in:
lib/frm/release_pusher.rb

Instance Method Summary collapse

Methods inherited from Base

#compute_md5, #compute_sha1, #compute_sha2, #generate_gzip_pipe, #gpg_clearsign, #gpg_detached, #gpg_export_pubkey, #gunzip_pipe, #handle_errors, #run

Constructor Details

#initialize(package_release, access_key, secret_key, bucket, prefix, public_repo = false) ⇒ ReleasePusher

Returns a new instance of ReleasePusher.



4
5
6
7
8
9
10
11
# File 'lib/frm/release_pusher.rb', line 4

def initialize(package_release,access_key,secret_key,bucket,prefix,public_repo=false)
  @release = package_release.release
  @bucket = bucket
  @prefix = prefix
  @s3 = FRM::S3.new(access_key,secret_key,public_repo)
  push_packages(package_release.packages)
  push_release_files(package_release)
end