forked from Sutto/chef-brightbox
-
Notifications
You must be signed in to change notification settings - Fork 6
/
metadata.rb
67 lines (57 loc) · 2.37 KB
/
metadata.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name 'brightbox-ruby'
maintainer 'Mojo Lingo LLC'
maintainer_email 'ops@mojolingo.com'
license 'Apache 2.0'
description 'Handles managing Rubies from brightbox'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.2.1'
recipe "brightbox-ruby::default", "Adds the brightbox repository, installs the Ruby package, sets it as the default then installs a sane server gemrc and adds bundler, rake and rubygems-bundler gems to bootstrap your environment."
grouping 'brightbox-ruby',
title: "Ruby install options",
description: "Set options relevant to installing Ruby"
attribute 'brightbox-ruby/default_action',
display_name: "Default action for Ruby install",
description: "Default action for Ruby install",
choice: [:upgrade, :install],
type: "symbol",
required: "optional",
recipes: ['brightbox-ruby'],
default: :upgrade
attribute 'brightbox-ruby/version',
display_name: "The version of Ruby to install",
description: "The version of Ruby to install",
type: "string",
required: "optional",
recipes: ['brightbox-ruby'],
default: '2.1'
attribute 'brightbox-ruby/install_dev_package',
display_name: "Install the dev package, which provides headers for gem native extensions",
description: "Install the dev package, which provides headers for gem native extensions",
choice: [true, false],
required: "optional",
recipes: ['brightbox-ruby'],
default: true,
type: "boolean"
attribute 'brightbox-ruby/gems',
display_name: "Gems to be installed by default",
description: "Gems to be installed by default",
type: "array",
required: "optional",
recipes: ['brightbox-ruby'],
default: ["bundler", "rake", "rubygems-bundler"]
attribute 'brightbox-ruby/rubygems_version',
display_name: 'The version of rubygems to enforce, or nil to use the default packaged version',
description: 'The version of rubygems to enforce, or nil to use the default packaged version',
type: 'string',
required: 'optional',
recipes: ['brightbox-ruby'],
default: nil
attribute 'brightbox-ruby/install_ruby_switch',
display_name: 'Wether of not to install ruby_switch',
description: 'Wether of not to install ruby_switch. Defaults to false on recent versions of Ubuntu (>= 14.x) since ruby_switch has been deprecated.',
type: 'boolean',
required: 'optional',
recipes: ['brightbox-ruby'],
default: false
supports 'ubuntu'
depends 'apt'