netscaler-cli 0.3.2 → 0.3.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.
data/etc/Version CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -104,16 +104,16 @@ module Netscaler
104
104
  end
105
105
 
106
106
  def validate_args(args)
107
- if requires_argument?
108
- if args.length == 0
107
+ if args.length == 0
108
+ if requires_argument?
109
109
  raise Netscaler::ConfigurationError.new("No hosts specified to act on.")
110
- elsif args.length != 1
111
- raise Netscaler::ConfigurationError.new("Only one #{cli_type} can be acted on at a time.")
110
+ else
111
+ validate_noargs
112
112
  end
113
-
114
- @host = args[0]
113
+ elsif args.length != 1
114
+ raise Netscaler::ConfigurationError.new("Only one #{cli_type} can be acted on at a time.")
115
115
  else
116
- validate_noargs
116
+ @host = args[0]
117
117
  end
118
118
 
119
119
  if options[:action].empty?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netscaler-cli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gabe McArthur
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-03 00:00:00 -08:00
18
+ date: 2010-12-07 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency