From 60aa7d402333d4f732339274725cb238332307a9 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Lopes Ribeiro Date: Mon, 16 Dec 2013 22:27:05 -0200 Subject: [PATCH] Added option to create readonly attributes --- lib/fog/core/attributes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fog/core/attributes.rb b/lib/fog/core/attributes.rb index e9c2840425..2d658ed2eb 100644 --- a/lib/fog/core/attributes.rb +++ b/lib/fog/core/attributes.rb @@ -66,6 +66,8 @@ def #{name}=(new_#{name}) attributes[:#{name}] = [*new_#{name}] end EOS + when :readonly + #do not create a setter else if squash = options[:squash] class_eval <<-EOS, __FILE__, __LINE__