class DB2Fog::BaseAdaptor

Public Class Methods

new(credentials) click to toggle source
   # File lib/db2fog.rb
91 def initialize(credentials)
92   @credentials = credentials
93 end

Public Instance Methods

dump() click to toggle source
    # File lib/db2fog.rb
100 def dump
101   dump_file = Tempfile.new("dump")
102   run(dump_command(dump_file))
103   dump_file.path
104 end
run(command) click to toggle source
   # File lib/db2fog.rb
95 def run(command)
96   result = system(command)
97   raise("error, process exited with status #{$?.exitstatus}") unless result
98 end