Module: LeeroyJenkins
- Defined in:
- lib/leeroy_jenkins.rb,
lib/leeroy_jenkins/cli.rb,
lib/leeroy_jenkins/result.rb,
lib/leeroy_jenkins/version.rb,
lib/leeroy_jenkins/job_finder.rb,
lib/leeroy_jenkins/job_updater.rb,
lib/leeroy_jenkins/job_restorer.rb,
lib/leeroy_jenkins/job_backupper.rb,
lib/leeroy_jenkins/jenkins_client_builder.rb
Defined Under Namespace
Classes: Cli, JenkinsClientBuilder, JobBackupper, JobFinder, JobRestorer, JobUpdater, Result
Constant Summary collapse
- VERSION =
'0.4.0'.freeze
Class Method Summary collapse
Class Method Details
.invalid_xml_document?(raw_xml) ⇒ Boolean
16 17 18 19 20 21 22 23 24 |
# File 'lib/leeroy_jenkins.rb', line 16 def self.invalid_xml_document?(raw_xml) begin Nokogiri::XML(raw_xml, &:strict) rescue Nokogiri::XML::SyntaxError => e return e end false end |