Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
platform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
leap
platform
Commits
c2e54a8a
Commit
c2e54a8a
authored
9 years ago
by
elijah
Committed by
Micah
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
auto run bundler when needed for site_static
parent
dcce787c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
puppet/modules/site_static/manifests/location.pp
+13
-0
13 additions, 0 deletions
puppet/modules/site_static/manifests/location.pp
with
13 additions
and
0 deletions
puppet/modules/site_static/manifests/location.pp
+
13
−
0
View file @
c2e54a8a
...
...
@@ -23,6 +23,19 @@ define site_static::location($path, $format, $source) {
}
}
if
(
$format
==
'rack'
)
{
# Run bundler if there is a Gemfile
exec
{
'bundler_update'
:
cwd
=>
$file_path
,
command
=>
'/bin/bash -c "/usr/bin/bundle check --path vendor/bundle || /usr/bin/bundle install --path vendor/bundle --without test development debug"'
,
unless
=>
'/usr/bin/bundle check --path vendor/bundle'
,
onlyif
=>
'test -f Gemfile'
,
user
=>
'www-data'
,
timeout
=>
600
,
require
=>
[
Class
[
'bundler::install'
],
Class
[
'site_config::ruby::dev'
]];
}
}
vcsrepo
{
$file_path
:
ensure
=>
present
,
force
=>
true
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment