Class: Lazylead::NoAuthJira
- Inherits:
-
Object
- Object
- Lazylead::NoAuthJira
- Defined in:
- lib/lazylead/system/jira.rb
Overview
Jira instance without authentication in order to access public filters
or dashboards.
Instance Method Summary collapse
-
#initialize(url, log = Log::NOTHING) ⇒ NoAuthJira
constructor
A new instance of NoAuthJira.
- #issues(jql, opts = {}) ⇒ Object
-
#raw(&block) ⇒ Object
Execute request to the ticketing system using raw client.
Constructor Details
#initialize(url, log = Log::NOTHING) ⇒ NoAuthJira
Returns a new instance of NoAuthJira.
230 231 232 233 234 235 236 |
# File 'lib/lazylead/system/jira.rb', line 230 def initialize(url, log = Log::NOTHING) @jira = Jira.new( { username: nil, password: nil, site: url, context_path: "" }, NoSalt.new, log ) end |
Instance Method Details
#issues(jql, opts = {}) ⇒ Object
238 239 240 |
# File 'lib/lazylead/system/jira.rb', line 238 def issues(jql, opts = {}) @jira.issues(jql, opts) end |
#raw(&block) ⇒ Object
Execute request to the ticketing system using raw client. For Jira the raw client is ‘jira-ruby’ gem.
244 245 246 247 |
# File 'lib/lazylead/system/jira.rb', line 244 def raw(&block) raise "ll-07: No block given to method" unless block_given? @jira.raw(&block) end |