Commit 6c8d8bc7 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #729 from uberhacker/add-aws-package

Add aws package
parents af53c77b d1483d11
require '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.'
homepage 'https://aws.amazon.com/documentation/cli/'
version 'latest'
source_url 'https://s3.amazonaws.com/aws-cli/awscli-bundle.zip'
source_sha1 'af083a1e5455a8e040aaeda46e7b634b6510a8af'
depends_on 'python'
depends_on 'unzip'
def self.install
system "#{CREW_BREW_DIR}/awscli-bundle.zip.dir/awscli-bundle/install -i /usr/local/aws -b /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/bin"
system "cp -r /usr/local/aws #{CREW_DEST_DIR}/usr/local"
system "cp /usr/local/bin/aws #{CREW_DEST_DIR}/usr/local/bin"
end
end
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