Sha256: b4e0e55ec78e1c5fc296c6c45bf3e02f7b8b2102821a8b5d37aeb92e12b9e9fb

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

module Wukong
  module AndPig
    class PigVar
      # ===========================================================================
      #
      # Pig expressions
      #

      #
      def dfs cmd, filename
        # note == no '' on path
        self.class.emit "%-23s\t           %s" % [cmd, filename]
      end
      #
      # remove the stored file
      #
      def rmf! filename
        dfs :rmf, filename
      end

      #
      #
      #
      def mkdir filename
        dfs :mkdir, filename
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
mrflip-wukong-0.1.0 lib/wukong/and_pig/operators/file_methods.rb
wukong-0.1.4 lib/wukong/and_pig/operators/file_methods.rb
wukong-0.1.1 lib/wukong/and_pig/operators/file_methods.rb