server/lib/deltacloud/base_driver/features.rb
def operation(name, &block)
        op = @operations.find { |op| op.name == name }
        if block_given?
          if op.nil?
            op = Operation.new(name, &block)
            @operations << op
          else
            op.instance_eval(&block)
          end
        end
        op
      end
# Add/modify an operation or look up an existing one. If +block+ is
# provided, create a new operation if none exists with name
# +name+. Evaluate the +block+ against this instance. If no +block+
# is provided, look up the operation with name +name+
Add/modify an operation or look up an existing one. If +block+ is
provided, create a new operation if none exists with name
is provided, look up the operation with name +name+
Add / modify an operation or look up an existing one . If + block + is provided create a new operation if none exists with name is provided look up the operation with name + name +
def operation(name, &block)
        op = @operations.find { |op| op.name == name }
        if block_given?
          if op.nil?
            op = Operation.new(name, &block)
            @operations << op
          else
            op.instance_eval(&block)
          end
        end
        op
      end
def operation ( name , & block ) op = @operations . find { | op | op . name == name } if block_given? if op . nil? op = Operation . new ( name , & block ) @operations << op else op . instance_eval ( & block ) end end op end
Add/modify an operation or look up an existing one.
Add / modify an operation or look up an existing one .
name
block