netscaler 0.5.1 → 0.5.2

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2Q0NmI3N2Y1MjRkZmJkNDFhZjAzNTllNzExZmI0NGZkMGE4YjAwMQ==
4
+ NjdmZTY4OWRjMzFlMjg1YzVjZTgwMWE1YTNlODMzMmNjMGY4MGM5Nw==
5
5
  data.tar.gz: !binary |-
6
- Y2ZiZDJiYjc2YTM5NjMwMWY3MzFmODc2YjZkODQ4YWYyZTI1YjIxZg==
6
+ MmE5Y2NiMjEzMDE5NDFjZGY5MDBjZDE5ODJhNTlhZmMyMTJkN2Q1YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjUxZWViMDcxZmMyNjc1YTU2N2ExMDgzMTMyNmIyMTU5MDM2ODhhYzYyZTRh
10
- ZGM4Y2EwNDA1NjVhOGVhMDAxMmUyZjFkZGQ1NjhlMjJiOWVlMWQyNWM1YmJm
11
- NDhlMDkwZjc2OTNhYmMxZTllZjQ1MjIyODM3NTlmN2ZlYjEwZjQ=
9
+ NDU4ZDM5MzQ5M2I0MWRjNjc5M2QwY2Q1MjRlNWMwZjYzZTY1MDk2YzI3NmRi
10
+ NWE1MzU5YWQ3NzNhNzVlNzk2ZWE0Y2JlY2YxMmYwZmI1NmEzZDY3NmFlZTJk
11
+ MGFkYzNiMTE3ZGQ4NzBlNDU4NzdhMGFkNjdhNmJhNjczNjczNDE=
12
12
  data.tar.gz: !binary |-
13
- NjkyYWE3Njc5Zjg1OWE1Njc4ZjI2YzUxMWY2M2M3YTY1MGU3ODEwYzhmMzQx
14
- ZmFkZDU2NTc0Yzg1ZTljZTFkNmQ4Y2UxNzVjMThhYmI2OTIxMmYyZDg2NDM0
15
- ZTFkMjk1OTNiMDFjMjAzODQ0MzM1YjQwM2E5MjhlNTM2ZDBkY2I=
13
+ NGZhOTU0YWVjMmFjMjQ1M2IzM2JiMWIyYTFjMzY2ODg4NjBlNzc3MzY1M2Qx
14
+ NTJmNGFmMDJiMTg3ODNiYTc1YmVkZTE0YjliOGZjMzM0MWI4ZmQwMDFkMDYz
15
+ OTE0ODVjZjgwYzY4NjAzMWY5Y2I0NjY2YjRlMDg0MTJjMzU1NDg=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -1,3 +1,4 @@
1
+ require 'netscaler/cs/policy'
1
2
  require 'netscaler/cs/vserver'
2
3
  require 'netscaler/cs/vserver/bind'
3
4
  require 'netscaler/cs/vserver/unbind'
@@ -13,5 +14,9 @@ module Netscaler
13
14
  Vserver.new @netscaler
14
15
  end
15
16
 
17
+ def policy
18
+ Policy.new @netscaler
19
+ end
20
+
16
21
  end
17
22
  end
@@ -0,0 +1,25 @@
1
+ require 'netscaler/netscaler_service'
2
+
3
+ module Netscaler
4
+ class Cs
5
+ class Policy < NetscalerService
6
+
7
+ def initialize(netscaler)
8
+ @netscaler=netscaler
9
+ end
10
+
11
+ def show(payload={})
12
+ if payload[:name] != nil then
13
+ validate_payload(payload, [:name])
14
+ return @netscaler.adapter.get("config/cspolicy/#{payload[:name]}")
15
+ elsif payload == {} then
16
+ return @netscaler.adapter.get('config/cspolicy/')
17
+ else
18
+ raise ArgumentError, 'payload supplied must have been missing :name'
19
+ end
20
+ end
21
+
22
+ end
23
+ end
24
+ end
25
+
@@ -21,5 +21,4 @@ module Netscaler
21
21
 
22
22
  end
23
23
  end
24
- end
25
-
24
+ end
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: netscaler 0.5.1 ruby lib
5
+ # stub: netscaler 0.5.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "netscaler"
9
- s.version = "0.5.1"
9
+ s.version = "0.5.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Jeremy Custenborder", "David Andrew", "Jarrett Irons"]
14
- s.date = "2015-01-19"
14
+ s.date = "2015-02-09"
15
15
  s.description = "Netscaler api working against the Citrix Nitro api. Currently supports Nitro 9.3. Hope to add support for 10.X. Currently has support for som basics such as adding servers/services/servicegroups."
16
16
  s.email = ["jeremy@scarcemedia.com", "david.andrew@webtrends.com", "jarrett.irons@gmail.com"]
17
17
  s.extra_rdoc_files = [
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
31
31
  "lib/netscaler/adapter.rb",
32
32
  "lib/netscaler/connection.rb",
33
33
  "lib/netscaler/cs.rb",
34
+ "lib/netscaler/cs/policy.rb",
34
35
  "lib/netscaler/cs/vserver.rb",
35
36
  "lib/netscaler/cs/vserver/bind.rb",
36
37
  "lib/netscaler/cs/vserver/unbind.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netscaler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Custenborder
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-01-19 00:00:00.000000000 Z
13
+ date: 2015-02-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -149,6 +149,7 @@ files:
149
149
  - lib/netscaler/adapter.rb
150
150
  - lib/netscaler/connection.rb
151
151
  - lib/netscaler/cs.rb
152
+ - lib/netscaler/cs/policy.rb
152
153
  - lib/netscaler/cs/vserver.rb
153
154
  - lib/netscaler/cs/vserver/bind.rb
154
155
  - lib/netscaler/cs/vserver/unbind.rb