~ubuntu-branches/ubuntu/wily/ctioga2/wily

« back to all changes in this revision

Viewing changes to lib/ctioga2/data/backends/description.rb

  • Committer: Package Import Robot
  • Author(s): Vincent Fourmond
  • Date: 2013-07-08 20:58:17 UTC
  • mfrom: (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130708205817-cephnc6etndyxrrp
Tags: 0.4-2
* Upload to unstable
* Already conforms to newer standards

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
module CTioga2
24
24
 
25
 
  Version::register_svn_info('$Revision: 155 $', '$Date: 2010-06-21 21:41:32 +0200 (Mon, 21 Jun 2010) $')
 
25
  Version::register_svn_info('$Revision: 307 $', '$Date: 2012-01-05 14:50:43 +0100 (Thu, 05 Jan 2012) $')
26
26
  
27
27
 
28
28
  module Data
179
179
                  backend_options, "Selects the '{backend: #{@name}}' backend", 
180
180
                  nil, group) do |plotmaker, options|
181
181
            plotmaker.data_stack.backend_factory.set_current_backend(@name)
182
 
            for k,v in options
183
 
              plotmaker.data_stack.backend_factory.
184
 
                set_backend_parameter_value(@name, k, v)
185
 
            end
 
182
            if options
 
183
              for k,v in options
 
184
                plotmaker.data_stack.backend_factory.
 
185
                  set_backend_parameter_value(@name, k, v)
 
186
              end 
 
187
            end               # Commands#run_command set options to
 
188
            # nil if the options hash is an empty hash, so we have to
 
189
            # tackle this if it happens
186
190
          end
187
191
        end
188
192