Sha256: 68da845e46639fd5b6da553dc2547d1bd3eefe1e868e2b55aaa6499c3ab647c0

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

unless defined? $__rq_snapshotter__
  module RQ 
#{{{
    LIBDIR = File::dirname(File::expand_path(__FILE__)) + File::SEPARATOR unless
      defined? LIBDIR

    require LIBDIR + 'mainhelper'

    class  Snapshotter < MainHelper
#{{{
      def snapshot 
    #{{{
        set_q
        qtmp = @argv.shift
        raise "<#{ qtmp }> exists" if qtmp and test(?e, qtmp)
        qss = @q.snapshot qtmp, @options['retries']
        info{ "created q snapshot <#{ qtmp }>" }
    #}}}
      end
#}}}
    end # class Snapshotter
#}}}
  end # module RQ
$__rq_snapshotter__ = __FILE__ 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rq-0.1.7 lib/rq-0.1.7/snapshotter.rb