deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [3/65] git commit: Core: Added missing require to instance_states collection
Date Fri, 20 Jul 2012 09:59:21 GMT
Core: Added missing require to instance_states collection


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/eea8a4e6
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/eea8a4e6
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/eea8a4e6

Branch: refs/heads/master
Commit: eea8a4e68b61348a433c26a3d3aeb648bf9bcb2d
Parents: 537352d
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Jul 19 14:55:06 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Jul 20 11:59:09 2012 +0200

----------------------------------------------------------------------
 .../lib/deltacloud/collections/instance_states.rb  |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/eea8a4e6/server/lib/deltacloud/collections/instance_states.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/collections/instance_states.rb b/server/lib/deltacloud/collections/instance_states.rb
index 74328a8..d5be6ec 100644
--- a/server/lib/deltacloud/collections/instance_states.rb
+++ b/server/lib/deltacloud/collections/instance_states.rb
@@ -13,7 +13,10 @@
 # License for the specific language governing permissions and limitations
 # under the License.
 
+require 'open3'
+
 module Deltacloud::Collections
+
   class InstanceStates < Base
 
     set :capability, lambda { |m| !driver.send(m).nil? }
@@ -42,7 +45,7 @@ module Deltacloud::Collections
               gv = erb(:"instance_states/show")
               png =  ''
               cmd = 'dot -Kdot -Gpad="0.2,0.2" -Gsize="5.0,8.0" -Gdpi="180" -Tpng'
-              Open3.popen3( cmd ) do |stdin, stdout, stderr|
+              ::Open3.popen3( cmd ) do |stdin, stdout, stderr|
                 stdin.write( gv )
                 stdin.close()
                 png = stdout.read


Mime
View raw message