Class: Bookbinder::Commands::BuildAndPushTarball
- Inherits:
-
BookbinderCommand
- Object
- BookbinderCommand
- Bookbinder::Commands::BuildAndPushTarball
- Includes:
- Naming
- Defined in:
- lib/bookbinder/commands/build_and_push_tarball.rb
Instance Method Summary collapse
Methods included from Naming
#command_for?, #command_type, #flag?
Methods inherited from BookbinderCommand
Constructor Details
This class inherits a constructor from Bookbinder::Commands::BookbinderCommand
Instance Method Details
#run(_) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/bookbinder/commands/build_and_push_tarball.rb', line 16 def run(_) config = configuration_fetcher.fetch_config aws_credentials = configuration_fetcher.fetch_credentials[:aws] archive = Archive.new(logger: @logger, key: aws_credentials.access_key, secret: aws_credentials.secret_key) archive.create_and_upload_tarball(build_number: ENV['BUILD_NUMBER'], bucket: aws_credentials.green_builds_bucket, namespace: Ingest::DestinationDirectory.new(config.book_repo)) 0 end |
#usage ⇒ Object
11 12 13 14 |
# File 'lib/bookbinder/commands/build_and_push_tarball.rb', line 11 def usage [command_name, "Create a tarball from the final_app directory and push to the S3 bucket specified in your credentials.yml"] end |