class DbToFile::SystemExecuter

Public Class Methods

new(command) click to toggle source
# File lib/db_to_file/system_executer.rb, line 3
def initialize(command)
  self.command = command
end

Public Instance Methods

command=(command) click to toggle source
# File lib/db_to_file/system_executer.rb, line 7
def command=(command)
  @command = command
end
execute() click to toggle source
# File lib/db_to_file/system_executer.rb, line 11
def execute
  puts "Execute command: #{@command}"
  `#{@command}`
end