Sha256: 1438261cec05bfa3527831ada40547e467e6ea84e0a8694b856cb28c1f26db86
Contents?: true
Size: 598 Bytes
Versions: 9
Compression:
Stored size: 598 Bytes
Contents
module Fog module Compute class QingCloud class Real # {API Reference}[https://docs.qingcloud.com/api/router/poweroff_routers.html] # {API Reference}[https://docs.qingcloud.com/api/router/poweron_routers.html] def routers_power(id, action) action = action.downcase.capitalize args = {'action' => "Power#{action}Routers"} args.merge!(Fog::QingCloud.indexed_param('routers', [*id])) request(args) end end class Mock def routers_power(id, action) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems