This repository was archived by the owner on Jan 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 - 2.1.0
55
66env :
7- - PUPPET_VERSION="~> 3.4.0"
87 - PUPPET_VERSION="~> 3.6.0"
98 - PUPPET_VERSION="~> 3.7.0"
109 - PUPPET_VERSION="~> 4.3.0"
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ require 'puppet_blacksmith/rake_tasks'
66PuppetLint . configuration . log_format = "%{path}:%{line}:%{check}:%{KIND}:%{message}"
77PuppetLint . configuration . fail_on_warnings = false
88PuppetLint . configuration . send ( "disable_80chars" )
9+ PuppetLint . configuration . send ( "disable_arrow_on_right_operand_line" )
910
1011exclude_paths = [
1112 "pkg/**/*" ,
Original file line number Diff line number Diff line change 130130 }
131131 }
132132
133+ $node_prefix = $target_dir
134+ file { "nodejs-npmrc-etc-dir-${version}" :
135+ ensure => directory ,
136+ path => " ${node_unpack_folder} /etc" ,
137+ } ->
138+ file { "nodejs-npmrc-${version}" :
139+ ensure => present ,
140+ path => " ${node_unpack_folder} /etc/npmrc" ,
141+ content => template (" ${module_name} /npmrc" )
142+ }
143+
133144 file { "nodejs-symlink-bin-with-version-${version}" :
134145 ensure => ' link' ,
135146 path => $node_symlink ,
Original file line number Diff line number Diff line change 112112 . with_content ( /(.*)\/ usr\/ local\/ bin\/ node-v6.0.0 \/ usr\/ local\/ node\/ node-v6.0.0\/ bin\/ npm "\$ @"/ )
113113 }
114114
115+ it { should contain_file ( 'nodejs-npmrc-etc-dir-v6.0.0' ) \
116+ . with_ensure ( 'directory' ) \
117+ . with_path ( '/usr/local/node/node-v6.0.0/etc' )
118+ }
119+
120+ it { should contain_file ( 'nodejs-npmrc-v6.0.0' ) \
121+ . with_path ( '/usr/local/node/node-v6.0.0/etc/npmrc' )
122+ }
123+
115124 it { should_not contain_file ( '/usr/local/bin/node' ) }
116125 it { should_not contain_file ( '/usr/local/bin/npm' ) }
117126
Original file line number Diff line number Diff line change 1+ prefix=<%= @node_prefix.sub '/bin', '' %>
You can’t perform that action at this time.
0 commit comments