Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
feat(setup): add global option for enabling/disabling nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Jul 9, 2019
1 parent 7a492f6 commit c21ce15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Expand Up @@ -41,6 +41,7 @@
default['defaults']['global']['logrotate_options'] = %w[
missingok compress delaycompress notifempty copytruncate sharedscripts
]
default['defaults']['global']['use_nodejs'] = false

# database
## common
Expand Down
8 changes: 5 additions & 3 deletions recipes/setup.rb
Expand Up @@ -44,9 +44,11 @@
end
end

# NodeJS and Yarn
include_recipe 'nodejs'
include_recipe 'yarn'
if globals(:use_nodejs, application['shortname'])
# NodeJS and Yarn
include_recipe 'nodejs'
include_recipe 'yarn'
end

# Ruby and bundler
if node['platform_family'] == 'debian'
Expand Down

0 comments on commit c21ce15

Please sign in to comment.