Update update_puppetfile
This commit is contained in:
parent
8ad7c9d2f3
commit
74d7932b7b
@ -11,10 +11,9 @@ USAGE = <<-EOS
|
|||||||
<module_name>
|
<module_name>
|
||||||
Name of the module to update in the Puppetfile
|
Name of the module to update in the Puppetfile
|
||||||
|
|
||||||
<git_ref>
|
<git_commit>
|
||||||
The git ref (branch, tag, sha) that we want to set for the module_name in
|
The git commit sha that we want to set for the module_name in
|
||||||
the Puppetfile.
|
the Puppetfile.
|
||||||
NOTE: production Puppetfile will only have release tags as git refs
|
|
||||||
|
|
||||||
<module_workspace>
|
<module_workspace>
|
||||||
The module's workspace where we will clone the puppetfile repo into
|
The module's workspace where we will clone the puppetfile repo into
|
||||||
@ -97,7 +96,7 @@ def update_puppetfile_module_ref(puppetfile_repo, module_info)
|
|||||||
|
|
||||||
new_contents = contents.gsub(regex, """
|
new_contents = contents.gsub(regex, """
|
||||||
mod '#{module_info.module_name}'\\2
|
mod '#{module_info.module_name}'\\2
|
||||||
:ref => '#{module_info.module_git_ref}'
|
:commit => '#{module_info.module_git_ref}'
|
||||||
""".strip)
|
""".strip)
|
||||||
|
|
||||||
puts "after regex, file contents = #{new_contents}"
|
puts "after regex, file contents = #{new_contents}"
|
||||||
|
Loading…
Reference in New Issue
Block a user