Skeleton
Bugzilla::Bugzilla class is to access the Bugzilla::WebService::Bugzilla API that provides functions tell you about Bugzilla in general.
Returns Array contains the result of the version check and Bugzilla version that is running on.
# File lib/bugzilla/bugzilla.rb, line 45 def check_version(version_) v = version f = false if v.kind_of?(Hash) && v.include?("version") && v['version'] >= "#{version_}" then f = true end [f, v['version']] end
Raise an exception if the Bugzilla doesn't satisfy the requirement of the version.
# File lib/bugzilla/bugzilla.rb, line 65 def requires_version(cmd, version_) v = check_version(version_) raise NoMethodError, sprintf("%s is not supported in Bugzilla %s", cmd, v[1]) unless v[0] end
# File lib/bugzilla/bugzilla.rb, line 153 def __last_audit_time(cmd, *args) requires_version(cmd, 4.4) # FIXME end
# File lib/bugzilla/bugzilla.rb, line 131 def _extensions(cmd, *args) requires_version(cmd, 3.2) @iface.call(cmd) end
# File lib/bugzilla/bugzilla.rb, line 147 def _parameters(cmd, *args) requires_version(cmd, 4.4) @iface.call(cmd) end
# File lib/bugzilla/bugzilla.rb, line 141 def _time(cmd, *args) requires_version(cmd, 3.4) @iface.call(cmd) end
# File lib/bugzilla/bugzilla.rb, line 137 def _timezone(cmd, *args) @iface.call(cmd) end
Raw Bugzilla API to obtain the Bugzilla version.
See www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bugzilla.html
Raw Bugzilla API to obtain the information about the extensions that are currently installed and enabled in the Bugzilla.
See www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bugzilla.html
Raw Bugzilla API to obtain the timezone that Bugzilla expects dates and times in.
See www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bugzilla.html
Raw Bugzilla API to obtain the information about what time the bugzilla server thinks it is, and what timezone it's running on.
See www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bugzilla.html
Raw Bugzilla API to obtain parameter values currently used in Bugzilla.
See www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bugzilla.html
# File lib/bugzilla/bugzilla.rb, line 127 def _version(cmd, *args) @iface.call(cmd) end
Generated with the Darkfish Rdoc Generator 2.