brocade_vrouter 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/brocade_vrouter/client.rb +1 -1
- data/lib/brocade_vrouter/configuration.rb +6 -5
- data/lib/brocade_vrouter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b73fb08499f1b09631ea48a5c7ef501ce2126781
|
4
|
+
data.tar.gz: 4f3e002d200ef58cbebd3436a134fb47fb954c3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5f3041951e2b065d9e850767d97b0cf780b23701df11df3225d713d3c343f41ccf2cc40d6828b7c9ef60c3a97682775c6d817846c8cd4f0afee0f09ce56523
|
7
|
+
data.tar.gz: b8653076404eec996c70c7806023bb720745c7a59480775b1b4da2fa9c61ce215621c336f985bdfa276d27406c830dfec28e56d623176fc473b1746615e21051
|
@@ -17,7 +17,7 @@ module BrocadeVRouter
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def configuration(raise_on_fail: nil, &blk)
|
20
|
-
raise_on_fail =
|
20
|
+
raise_on_fail = BrocadeVRouter.config.raise_on_fail if raise_on_fail.nil?
|
21
21
|
@current_conf ||= Configuration.new connection, logger: logger
|
22
22
|
@current_conf.raise_on_fail = raise_on_fail
|
23
23
|
block_given? ? @current_conf.perform(&blk) : @current_conf
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module BrocadeVRouter
|
2
2
|
class Configuration
|
3
|
-
CONF_PATH = '
|
3
|
+
CONF_PATH = 'rest/conf'.freeze
|
4
4
|
|
5
5
|
attr_reader :connection, :last_response, :logger
|
6
6
|
attr_accessor :raise_on_fail
|
@@ -13,10 +13,11 @@ module BrocadeVRouter
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def base_path
|
16
|
-
@base_path ||=
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
@base_path ||=
|
17
|
+
begin
|
18
|
+
handle_request :post, CONF_PATH
|
19
|
+
handle_response(connection.post "/#{CONF_PATH}").headers['location']
|
20
|
+
end
|
20
21
|
end
|
21
22
|
|
22
23
|
def perform(&blk)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brocade_vrouter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Kosmatov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|