diff --git a/lib/spice/connection/environments.rb b/lib/spice/connection/environments.rb index cf49d5d..0f1ee30 100644 --- a/lib/spice/connection/environments.rb +++ b/lib/spice/connection/environments.rb @@ -22,6 +22,15 @@ def environment(name) Spice::Environment.get_or_new(attributes) end # def environment + # + def update_environment(params=Mash.new) + environment = environment(params[:name]) + + environment.attrs.update Spice::Environment.new(params) + put("/environments/#{environment.name}", environment.attrs) + environment(environment.name) + end + end # module Environments end # class Connection -end # module Spice \ No newline at end of file +end # module Spice