Sha256: e85a3affc2d414b20ec82b5d8a627eb3660587da6bbe47025538b6d9829785fe

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

require_relative "provider"

module Ddr
  module FileTools
    class Fits < Provider

      class << self
        # Path to FITS executable (fits.sh or fits.bat)
        attr_accessor :fits_path
      end

      self.fits_path = File.join(File.expand_path("../../../../bin", __FILE__), "fits", "fits.sh")

      def metadata(file_path)
        call command(file_path)
      end

      private

      def command(file_path)
        [self.class.fits_path, "-i", file_path]
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ddr-filetools-0.4.0 lib/ddr/filetools/fits.rb