You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2011/08/03 14:20:39 UTC
[PATCH core 2/5] Client: Removed trailing whitespaces
From: Michal Fojtik <mf...@redhat.com>
Signed-off-by: Michal fojtik <mf...@redhat.com>
---
client/lib/base_object.rb | 4 ++--
client/lib/deltacloud.rb | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/client/lib/base_object.rb b/client/lib/base_object.rb
index dd2b64a..8aec05b 100644
--- a/client/lib/base_object.rb
+++ b/client/lib/base_object.rb
@@ -162,7 +162,7 @@ module DeltaCloud
@actions = []
end
- # This trigger is called right after action.
+ # This trigger is called right after action.
# This method does nothing inside ActionObject
# but it can be redifined and used in meta-programming
def action_trigger(action)
@@ -327,7 +327,7 @@ module DeltaCloud
DeltaCloud::API.class_eval("class #{class_name} < DeltaCloud::#{parent_class}; end")
@defined_classes << class_name
end
-
+
DeltaCloud::API.const_get(parent.classify).const_get(name.classify)
end
diff --git a/client/lib/deltacloud.rb b/client/lib/deltacloud.rb
index bfe25a2..70189aa 100644
--- a/client/lib/deltacloud.rb
+++ b/client/lib/deltacloud.rb
@@ -213,7 +213,7 @@ module DeltaCloud
# If there are actions, add they to ActionObject/StateFullObject
if attribute.name == 'actions'
(attribute/'link').each do |link|
- (obj.add_run_action!(item['id'], link) && next) if link[:rel] == 'run'
+ (obj.add_run_action!(item['id'], link) && next) if link[:rel] == 'run'
obj.add_action_link!(item['id'], link)
end && next
end
@@ -316,7 +316,7 @@ module DeltaCloud
def use_driver(driver, opts={})
if driver
- @api_driver = driver
+ @api_driver = driver
@driver_name = driver
discover_entry_points
end
--
1.7.4.1