Sha256: 0a1e5bc62db27829051f54fb8431bd2529b2c3e99c9dd9f71351a28037753726

Contents?: true

Size: 457 Bytes

Versions: 5

Compression:

Stored size: 457 Bytes

Contents

module BackupJenkins
  class CLI
    class << self
      def run
        config = BackupJenkins::Config.new
        backup = BackupJenkins::Backup.new(config)
        aws = BackupJenkins::AWS.new(config)

        backup.do_backup

        full_filename = backup.tarball_filename
        filename = File.basename(full_filename)

        aws.upload_file(filename, File.open(full_filename))
        aws.remove_old_files # Clean up!
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
backup_jenkins-0.0.5 lib/backup_jenkins/cli.rb
backup_jenkins-0.0.4 lib/backup_jenkins/cli.rb
backup_jenkins-0.0.3 lib/backup_jenkins/cli.rb
backup_jenkins-0.0.2 lib/backup_jenkins/cli.rb
backup_jenkins-0.0.1 lib/backup_jenkins/cli.rb