Class: OozieClient
- Inherits:
-
Object
- Object
- OozieClient
- Defined in:
- lib/oozie-client.rb,
lib/oozie-client/base.rb,
lib/oozie-client/admin.rb,
lib/oozie-client/config.rb,
lib/oozie-client/version.rb,
lib/oozie-client/oozie_job.rb,
lib/oozie-client/job_collection.rb
Defined Under Namespace
Modules: Base Classes: Admin, Config, JobCollection, OozieJob
Constant Summary collapse
- VERSION =
"0.2.1"
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #admin ⇒ Object
-
#initialize(oozie_url, options = {}) ⇒ OozieClient
constructor
A new instance of OozieClient.
- #jobs ⇒ Object
Constructor Details
#initialize(oozie_url, options = {}) ⇒ OozieClient
Returns a new instance of OozieClient.
16 17 18 |
# File 'lib/oozie-client.rb', line 16 def initialize(oozie_url, ={}) @config = Config.new(oozie_url, ) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/oozie-client.rb', line 14 def config @config end |
Instance Method Details
#admin ⇒ Object
20 21 22 |
# File 'lib/oozie-client.rb', line 20 def admin Admin.new(config: config) end |
#jobs ⇒ Object
24 25 26 |
# File 'lib/oozie-client.rb', line 24 def jobs JobCollection.new(config: config) end |