Sha256: 18316ac9e742021881747a7376eee1cbfbf11c2e8f964a0d01ea3b9e6c6c93d2
Contents?: true
Size: 770 Bytes
Versions: 22
Compression:
Stored size: 770 Bytes
Contents
module Fog module OpenStack class Workflow class V2 class Real def create_environment(definition) unless definition["variables"].nil? definition["variables"] = Fog::JSON.encode(definition["variables"]) end body = Fog::JSON.encode(definition) request( :body => body, :expects => 201, :method => "POST", :path => "environments" ) end end class Mock def create_environment(_definition) response = Excon::Response.new response.status = 201 response.body = "" response end end end end end end
Version data entries
22 entries across 22 versions & 3 rubygems