Method: Mutx::TaskRack#updating_git_usage_as_false_if_local
- Defined in:
- lib/generators/task_rack.rb
#updating_git_usage_as_false_if_local ⇒ Object
114 115 116 117 118 119 120 121 |
# File 'lib/generators/task_rack.rb', line 114 def updating_git_usage_as_false_if_local if @local config_file_content = JSON.parse(IO.read("#{Dir.pwd}/mutx/conf/mutx.conf")) config_file_content["use_git"] = false content_to_save = config_file_content.to_json.gsub(",",",\n").gsub("{","{\n") IO.write("#{Dir.pwd}/mutx/conf/mutx.conf",content_to_save) end end |