Newbie to ruby
I see this particular string 'ENDSCRIPT' being used in our codebase
def update_existing_checkout(project)
<<-ENDSCRIPT
cd "#{base_dir}/#{project}" do
sh_with_monitoring "git reset --hard"
sh_with_monitoring "git fetch"
sh_with_monitoring "git fetch --tags"
sh_with_monitoring "git co #{@git_branch} "
sh_with_monitoring "git merge origin/#{@git_branch}" unless is_tag?(pwd, "#{@git_branch}" )
end
ENDSCRIPT
end
I can't find any documentation or any previous questions which explain this. May I know what this means and why this is used? thanks