class Piggly::UntraceTask
Public Class Methods
new(name = :untrace)
click to toggle source
Calls superclass method
Piggly::AbstractTask::new
# File lib/piggly/task.rb, line 82 def initialize(name = :untrace) super(name) end
Private Instance Methods
define()
click to toggle source
# File lib/piggly/task.rb, line 88 def define desc 'Untrace stored procedures' task @name do RakeFileUtils.verbose(@verbose) do # opts = @ruby_opts.clone # opts << (@piggly_path ? quote(@piggly_path) : "-S piggly") opts = [] opts << "untrace" opts.concat(["--cache-root", @cache_root]) if @cache_root case @procedures when String then opts.concat(["--name", @procedures]) when Regexp then opts.concat(["--name", @procedures.inspect]) when Array @procedures.each do |p| case p when String then opts.concat(["--name", p]) when Regexp then opts.concat(["--name", p.inspect]) end end end opts.concat(@piggly_opts) # ruby(opts.join(" ")) Command.main(opts) end end end