Sha256: 20be2f662868a3708b6a950d194540c06fe52005c41f65653515c5e0ecd52efb
Contents?: true
Size: 770 Bytes
Versions: 42
Compression:
Stored size: 770 Bytes
Contents
module Fog module Workflow class OpenStack 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
42 entries across 40 versions & 3 rubygems