app/models/request.rb
def push_to_git
    GitHelper.open_git_repository(for_write: true) do |git_writer|
      git_writer.write_file(Puppetscript.node_file_name(name), generate_puppet_node_script)
      git_writer.write_file(Puppetscript.class_file_name(name), generate_puppet_name_script)
      git_writer.save(commit_message(git_writer))
    end
  end
# Error handling has been moved into push_to_git_with_warnings to provide easier feedback for the user
Error handling has been moved into push_to_git_with_warnings to provide easier feedback for the user
Error handling has been moved into push_to_git_with_warnings to provide easier feedback for the user
def push_to_git
    GitHelper.open_git_repository(for_write: true) do |git_writer|
      git_writer.write_file(Puppetscript.node_file_name(name), generate_puppet_node_script)
      git_writer.write_file(Puppetscript.class_file_name(name), generate_puppet_name_script)
      git_writer.save(commit_message(git_writer))
    end
  end
def push_to_git GitHelper . open_git_repository ( for_write : true ) do | git_writer | git_writer . write_file ( Puppetscript . node_file_name ( name ) , generate_puppet_node_script ) git_writer . write_file ( Puppetscript . class_file_name ( name ) , generate_puppet_name_script ) git_writer . save ( commit_message ( git_writer ) ) end end
Error handling has been moved into push_to_git_with_warnings to provide easier feedback for the user
Error handling has been moved into push_to_git_with_warnings to provide easier feedback for the user