Commit 3f698b8d authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #783 from uberhacker/update-aws-package

Update aws package so it doesn't rely on the awscli-bundle.zip installer checksum
parents fdcdd077 1d4800d1
...@@ -3,15 +3,17 @@ require 'package' ...@@ -3,15 +3,17 @@ require 'package'
class Aws < Package class Aws < Package
description 'The AWS CLI is an open source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services.' description 'The AWS CLI is an open source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services.'
homepage 'https://aws.amazon.com/documentation/cli/' homepage 'https://aws.amazon.com/documentation/cli/'
version 'latest' version '1.11.110'
source_url 'https://s3.amazonaws.com/aws-cli/awscli-bundle.zip' source_url 'https://github.com/aws/aws-cli/archive/1.11.110.tar.gz'
source_sha1 'af083a1e5455a8e040aaeda46e7b634b6510a8af' source_sha1 'a30e4f23951c06bb4ab9ffaa9ac42188fae6d6ba'
depends_on 'python' depends_on 'python' unless File.exists? '/usr/local/bin/python'
depends_on 'unzip' depends_on 'unzip'
def self.install def self.install
system "#{CREW_BREW_DIR}/awscli-bundle.zip.dir/awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws" system "wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip"
system "unzip awscli-bundle.zip"
system "awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws"
system "chmod +x /usr/local/bin/aws" system "chmod +x /usr/local/bin/aws"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/aws" system "mkdir -p #{CREW_DEST_DIR}/usr/local/aws"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin" system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment