oozie-client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/lib/oozie-client.rb +2 -2
- data/lib/oozie-client/config.rb +5 -2
- data/lib/oozie-client/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
oozie-client (0.
|
4
|
+
oozie-client (0.2.1)
|
5
5
|
builder
|
6
6
|
rest-client
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
builder (3.0.
|
11
|
+
builder (3.0.3)
|
12
12
|
mime-types (1.19)
|
13
13
|
rest-client (1.6.7)
|
14
14
|
mime-types (>= 1.16)
|
data/lib/oozie-client.rb
CHANGED
data/lib/oozie-client/config.rb
CHANGED
@@ -4,9 +4,12 @@ class OozieClient
|
|
4
4
|
attr_reader :oozie_url
|
5
5
|
attr_reader :client
|
6
6
|
|
7
|
-
def initialize
|
7
|
+
def initialize(oozie_url, options={})
|
8
8
|
@oozie_url = oozie_url
|
9
|
-
|
9
|
+
net_options = options.select { |key| [:user, :password, :headers, :timeout, :open_timeout].member? key }
|
10
|
+
net_options[:timeout] ||= 20
|
11
|
+
net_options[:open_timeout] ||= 5
|
12
|
+
@client = RestClient::Resource.new "#{oozie_url}/v1", net_options
|
10
13
|
end
|
11
14
|
end
|
12
15
|
|
data/lib/oozie-client/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oozie-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|