You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:42:56 UTC
svn commit: r962278 - in /incubator/deltacloud/trunk/server:
lib/deltacloud/hardware_profile.rb views/hardware_profiles/index.html.haml
views/hardware_profiles/show.html.haml
Author: lutter
Date: Thu Jul 8 23:42:56 2010
New Revision: 962278
URL: http://svn.apache.org/viewvc?rev=962278&view=rev
Log:
Hardware profiles: remove 'mutable'
We need a more specific indication for when a HWP can be changed and altered
Modified:
incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb
incubator/deltacloud/trunk/server/views/hardware_profiles/index.html.haml
incubator/deltacloud/trunk/server/views/hardware_profiles/show.html.haml
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb?rev=962278&r1=962277&r2=962278&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb Thu Jul 8 23:42:56 2010
@@ -49,22 +49,9 @@ module Deltacloud
def initialize(name,&block)
@properties = {}
@name = name
- @mutable = false
instance_eval &block if block_given?
end
- def mutable
- @mutable = true
- end
-
- def immutable
- @mutable = false
- end
-
- def mutable?
- @mutable
- end
-
def each_property(&block)
@properties.each_value { |prop| yield prop }
end
Modified: incubator/deltacloud/trunk/server/views/hardware_profiles/index.html.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/views/hardware_profiles/index.html.haml?rev=962278&r1=962277&r2=962278&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/views/hardware_profiles/index.html.haml (original)
+++ incubator/deltacloud/trunk/server/views/hardware_profiles/index.html.haml Thu Jul 8 23:42:56 2010
@@ -12,8 +12,6 @@
Memory
%th
Storage
- %th
- Mutable
%tbody
- for profile in @profiles
%tr
@@ -25,5 +23,3 @@
= format_hardware_property profile.memory
%td
= format_hardware_property profile.storage
- %td
- = profile.mutable?
Modified: incubator/deltacloud/trunk/server/views/hardware_profiles/show.html.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/views/hardware_profiles/show.html.haml?rev=962278&r1=962277&r2=962278&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/views/hardware_profiles/show.html.haml (original)
+++ incubator/deltacloud/trunk/server/views/hardware_profiles/show.html.haml Thu Jul 8 23:42:56 2010
@@ -17,8 +17,3 @@
Storage
%dd
= format_hardware_property @profile.storage
- %di
- %dt
- Mutable
- %dd
- = @profile.mutable?