Module: Bicho

Defined in:
lib/bicho.rb,
lib/bicho/bug.rb,
lib/bicho/query.rb,
lib/bicho/logging.rb,
lib/bicho/version.rb,
lib/bicho/cli/command.rb,
lib/bicho/common_client.rb,
lib/bicho/plugins/novell.rb,
lib/bicho/client.rb

Defined Under Namespace

Modules: CLI, CommonClient, Logging, Plugins Classes: Bug, Client, LoggerIODevice, Query

Constant Summary

SEARCH_FIELDS =
[
  # name, type, description, multi
  [ :alias, :strings, "The unique alias for this bug", true],
  [ :assigned_to, :strings, "The login name of a user that a bug is assigned to.", true],
  [ :component, :strings, "The name of the Component", true],
  [ :creation_time, :string, "Searches for bugs that were created at this time or later.", false],
  [ :id, :ints, "The numeric id of the bug.", true],
  [ :last_change_time, :string, "Searches for bugs that were modified at this time or later.", false],
  [ :limit, :ints, "Limit the number of results returned to int records.", true],
  [ :offset, :ints, "Used in conjunction with the limit argument, offset defines the starting position for the search.", true],
  [ :op_sys, :strings, "The 'Operating System' field of a bug.", true],
  [ :platform, :strings, "The Platform field of a bug.", true],
  [ :priority, :strings, "The Priority field on a bug.", true],
  [ :product, :strings, "The name of the Product that the bug is in.", true],
  [ :reporter, :strings, "The login name of the user who reported the bug.", true],
  [ :resolution, :strings, "The current resolution--only set if a bug is closed.", true],
  [ :severity, :strings, "The Severity field on a bug.", true],
  [ :status, :strings, "The current status of a bug", true],
  [ :summary, :strings, "Searches for substrings in the single-line Summary field on bugs.", true],
  [ :target_milestone, :strings, "The Target Milestone field of a bug.", true],
  [ :qa_contact, :strings, "The login name of the bug's QA Contact.", true],
  [ :url, :strings, "The 'URL' field of a bug.", true],
  [ :version, :strings, "The Version field of a bug.", true],
  [ :votes, :ints, "Searches for bugs with this many votes or greater", false],
  [ :whiteboard, :strings, "Search the 'Status Whiteboard' field on bugs for a substring.", true]
]
VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.clientObject

Current client used by the library



53
54
55
# File 'lib/bicho/common_client.rb', line 53

def self.client
  CommonClient.common_client
end

.client=(client) ⇒ Object

Sets the common client to be used by the library



48
49
50
# File 'lib/bicho/common_client.rb', line 48

def self.client=(client)
  CommonClient.common_client = client
end