class Bricolage::TDTask::Delete

Public Class Methods

new(table_name, from:, to:) click to toggle source
# File lib/bricolage/tddatasource.rb, line 94
def initialize(table_name, from:, to:)
  @table = table_name
  @from = from.to_time.to_i
  @to = to.to_time.to_i
end

Public Instance Methods

command_args() click to toggle source
# File lib/bricolage/tddatasource.rb, line 104
def command_args
  ds.delete_command_args(@table, "--from #{@from}", "--to #{@to}")
end
run() click to toggle source
# File lib/bricolage/tddatasource.rb, line 100
def run
  td_result = ds.exec(source)
end
source() click to toggle source
# File lib/bricolage/tddatasource.rb, line 108
def source
  buf = StringIO.new
  buf.puts command_args.join(' ')
  buf.string
end