Sha256: 8e31b1ac847bd2391bfe721d6eac324e562d30b9e6e7226b055977c6866d7109
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
module Rundeck # Wrapper for the Rundeck REST API. class Client < API Dir[File.expand_path('../client/*.rb', __FILE__)].each { |f| require f } include Jobs include Keys def objectify(result) if result.is_a?(Hash) ObjectifiedHash.new(result) elsif result.is_a? Array result.map! { |e| ObjectifiedHash.new(e) } elsif result.nil? nil else fail Error::Parsing, "Couldn't parse a response body" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rundeck-0.0.3.pre | lib/rundeck/client.rb |
rundeck-0.0.2.pre | lib/rundeck/client.rb |
rundeck-0.0.1.pre | lib/rundeck/client.rb |