Method: VPL::Spec#write
- Defined in:
- lib/vcpkg_pipeline/core/spec.rb
#write(property, value) ⇒ Object
61 62 63 64 65 66 |
# File 'lib/vcpkg_pipeline/core/spec.rb', line 61 def write(property, value) VPL.info("写入 #{File.basename(@content_path)} : #{property} = #{value}") new_content = @content.gsub!(/(.*.#{property}.*=.*)('.*')/, "\\1'#{value}'") File.write(@content_path, new_content) end |