jamesn-softlayer-ruby 0.6.0.0 → 0.6.1.0
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/Changes +4 -0
- data/lib/softlayer.rb +7 -2
- metadata +2 -2
data/Changes
CHANGED
data/lib/softlayer.rb
CHANGED
@@ -260,7 +260,7 @@ module SoftLayer
|
|
260
260
|
def resultLimit
|
261
261
|
return @resultLimit
|
262
262
|
end
|
263
|
-
|
263
|
+
|
264
264
|
|
265
265
|
# Make a direct api call. Paramaters are a hash where the key is passed to ParamHeader as the tag, and the value
|
266
266
|
# is passed as the tag content, unless it's a magic paramater.
|
@@ -273,6 +273,7 @@ module SoftLayer
|
|
273
273
|
# is exhausted. If no limit is provided with the block a limit of [1,0] is assumed initially.
|
274
274
|
# Aliased to #method_missing.
|
275
275
|
def slapiCall(method, args = { }, &block)
|
276
|
+
|
276
277
|
initParam = args[:initParam] unless args[:initParam].nil?
|
277
278
|
args.delete(:initParam) unless args[:initParam].nil?
|
278
279
|
initParam = Param.new("#{self.soapClass}InitParameters", { 'id' => initParam }) unless initParam.nil?
|
@@ -285,7 +286,7 @@ module SoftLayer
|
|
285
286
|
paramHeaders = []
|
286
287
|
unless args.nil?
|
287
288
|
args.each do |k,v|
|
288
|
-
p =
|
289
|
+
p = Param.new(k.to_s,v)
|
289
290
|
paramHeaders.push(p)
|
290
291
|
@slapi.headerhandler << p
|
291
292
|
end
|
@@ -317,6 +318,10 @@ module SoftLayer
|
|
317
318
|
# Alias the above call method to #method_missing.
|
318
319
|
alias_method :method_missing, :slapiCall
|
319
320
|
|
321
|
+
def call(method, args = { }, &block)
|
322
|
+
return slapiCall(method, args, &block)
|
323
|
+
end
|
324
|
+
|
320
325
|
# Enable (or disable) debug. (paramater is the IO handler to write to)
|
321
326
|
def debug=(dev)
|
322
327
|
@slapi.wiredump_dev=(dev)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jamesn-softlayer-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Nuckolls
|
@@ -9,7 +9,7 @@ autorequire: softlayer
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-13
|
12
|
+
date: 2009-04-19 13:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|