Sha256: 006a6db85f472a9fc52b9f46d1bfbbcc582cb9e63ba6c9e1f0bd2b8ab7c9ebd3

Contents?: true

Size: 439 Bytes

Versions: 8

Compression:

Stored size: 439 Bytes

Contents

module Rivendell::Import::Tasking
  module File

    def file=(file)
      if file
        @file = file

        self.file_name = file.name
        self.file_path = file.path
      else
        @file = nil

        self.file_name = self.file_path = nil
      end
    end

    def file
      @file ||= Rivendell::Import::File.new(file_name, :path => file_path)
    end

    def delete_file!
      self.delete_file = true
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rivendell-import-0.9 lib/rivendell/import/tasking/file.rb
rivendell-import-0.8 lib/rivendell/import/tasking/file.rb
rivendell-import-0.7 lib/rivendell/import/tasking/file.rb
rivendell-import-0.6 lib/rivendell/import/tasking/file.rb
rivendell-import-0.0.5 lib/rivendell/import/tasking/file.rb
rivendell-import-0.0.4 lib/rivendell/import/tasking/file.rb
rivendell-import-0.0.3 lib/rivendell/import/tasking/file.rb
rivendell-import-0.0.2 lib/rivendell/import/tasking/file.rb