You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manages [rbenv][rbenv_site] and its installed Rubies.
9
+
Manages [jlenv][https://github.com/jlenv] and its installed Julias.
13
10
14
11
## Maintainers
15
12
16
-
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit [sous-chefs.org](https://sous-chefs.org/) or come chat with us on the Chef Community Slack in [#sous-chefs](https://chefcommunity.slack.com/messages/C2V7B88SF).
13
+
This cookbook is maintained by volunteers. Contributions and bug reports are welcome.
17
14
18
15
## Requirements
19
16
@@ -35,57 +32,57 @@ This cookbook requires Chef 13.0+.
35
32
36
33
Example installations are provided in `test/fixtures/cookbooks/test/recipes/`.
37
34
38
-
A `rbenv_system_install` or `rbenv_user_install` is required to be set so that rbenv knows which version you want to use, and is installed on the system.
35
+
A `jlenv_system_install` or `jlenv_user_install` is required to be set so that jlenv knows which version you want to use, and is installed on the system.
39
36
40
-
System wide installations of rbenv are supported by this cookbook, but discouraged by the rbenv maintainer, see [these][rbenv_issue_38][two][rbenv_issue_306] issues in the rbenv repository.
37
+
System wide installations of jlenv are supported by this cookbook, but discouraged by the jlenv maintainer, see [these][https://github.com/rbenv/rbenv/issues/38][two][https://github.com/rbenv/rbenv/issues/306] issues in the rbenv repository.
41
38
42
39
## Gem
43
40
44
-
Used to install a gem into the selected rbenv environment.
41
+
Used to install a package into the selected jlenv environment.
45
42
46
-
```ruby
47
-
rbenv_gem 'gem_name'do
48
-
options # Optional: Options to pass to the gem command e.g. '--no-rdoc --no-ri'
43
+
```julia
44
+
jlenv_package 'pkg_name'do
45
+
options # Optional: Options to pass to the packagecommand e.g. '--no-rdoc --no-ri'
49
46
source # Optional: source URL/location for gem.
50
47
timeout # Optional: Gem install timeout
51
48
version # Optional: Gem version to install
52
49
response_file # Optional: response file to reconfigure a gem
53
-
rbenv_version# Required: Which rbenv version to install the gem to.
54
-
user # Which user to install gem to. REQUIRED if you're using rbenv_user_install
50
+
jlenv_version# Required: Which jlenv version to install the packageto.
51
+
user # Which user to install packageto. REQUIRED if you're using jlenv_user_install
55
52
end
56
53
```
57
54
58
55
## Global
59
56
60
-
Sets the global ruby version. The name of the resource is the version to set.
57
+
Sets the global julia version. The name of the resource is the version to set.
61
58
62
-
```ruby
63
-
rbenv_global'2.5.1'do
59
+
```julia
60
+
jlenv_global'2.5.1'do
64
61
user # Optional: if passed sets the users global version. Leave unset, to set the system global version
65
62
end
66
63
```
67
64
68
-
If a user is passed in to this resource it sets the global version for the user, under the users `root_path` (usually `~/.rbenv/version`), otherwise it sets the system global version.
65
+
If a user is passed in to this resource it sets the global version for the user, under the users `root_path` (usually `~/.jlenv/version`), otherwise it sets the system global version.
69
66
70
67
## Plugin
71
68
72
-
Installs a rbenv plugin.
69
+
Installs a jlenv plugin.
73
70
74
-
```ruby
75
-
rbenv_plugin 'ruby-build'do
71
+
```julia
72
+
jlenv_plugin 'julia-build'do
76
73
git_url # Git URL of the plugin
77
74
git_ref # Git reference of the plugin
78
-
user # Optional: if passed installs to the users rbenv. Do not set, to set installs to the system rbenv.
75
+
user # Optional: if passed installs to the users jlenv. Do not set, to set installs to the system jlenv.
79
76
end
80
77
```
81
78
82
-
If user is passed in, the plugin is installed to the users install of rbenv.
79
+
If user is passed in, the plugin is installed to the users install of jlenv.
83
80
84
81
## Rehash
85
82
86
-
```ruby
87
-
rbenv_rehash'rehash'do
88
-
user 'vagrant'# Optional: if passed rehashes the user Ruby otherwise rehashes the system rbenv
83
+
```julia
84
+
jlenv_rehash'rehash'do
85
+
user 'vagrant'# Optional: if passed rehashes the user Ruby otherwise rehashes the system jlenv
89
86
end
90
87
```
91
88
@@ -95,22 +92,22 @@ If user is passed in, the user Ruby is rehashed rather than the system Ruby.
95
92
96
93
Installs a given Ruby version to the system or user location.
97
94
98
-
```ruby
99
-
rbenv_ruby'2.5.1'do
100
-
user # Optional, but recommended: If passed, the user to install rbenv to
101
-
rbenv_action# Optional: the action to perform, 'install' (default), 'uninstall' etc
95
+
```julia
96
+
jlenv_julia'2.5.1'do
97
+
user # Optional, but recommended: If passed, the user to install jlenv to
98
+
jlenv_action# Optional: the action to perform, 'install' (default), 'uninstall' etc
102
99
end
103
100
```
104
101
105
-
Shorter example `rbenv_ruby '2.5.1'`
102
+
Shorter example `jlenv_julia '2.5.1'`
106
103
107
104
## Script
108
105
109
-
Runs a rbenv aware script.
106
+
Runs a jlenv aware script.
110
107
111
-
```ruby
112
-
rbenv_script'foo'do
113
-
rbenv_version #rbenv version to run the script against
108
+
```julia
109
+
jlenv_script'foo'do
110
+
jlenv_version #jlenv version to run the script against
114
111
environment # Optional: A Hash of environment variables in the form of ({"ENV_VARIABLE" => "VALUE"}).
115
112
user # Optional: User to run as
116
113
group # Optional: Group to run as
@@ -120,10 +117,10 @@ end
120
117
```
121
118
Note that environment overwrites the entire variable.
122
119
For example. setting the `$PATH` variable can be done like this:
0 commit comments