forked from andytinycat/puppet-omnibus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws.rb
34 lines (26 loc) · 724 Bytes
/
aws.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class AwsGems < FPM::Cookery::Recipe
description 'Aws-support gems'
name 'aws'
version '1.1.0'
source "nothing", :with => :noop
platforms [:ubuntu, :debian] do
build_depends 'libxml2-dev', 'libxslt1-dev'
depends 'libxml2', 'libxslt1.1'
end
platforms [:fedora, :redhat, :centos] do
build_depends 'libxml2-devel', 'libxslt-devel'
depends 'libxml2', 'libxslt'
end
def build
gem_install 'aws-sdk', '1.57.0'
gem_install 'fog', '1.24.0'
end
def install
# Do nothing!
end
private
def gem_install(name, version = nil)
v = version.nil? ? '' : "-v #{version}"
cleanenv_safesystem "#{destdir}/bin/gem install --no-ri --no-rdoc #{v} #{name}"
end
end