Sha256: 82430cb85028840564dcef66d4428aae114e8c0b9574b25b7b149484353ac6c8

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 Bytes

Contents

module IronWorkerNG
  module Feature
    class Base
      def initialize(code)
        @code = code
      end

      def rebase(path)
        if not path.start_with?('/')
          path = @code.base_dir + path
        end

        path
      end

      def zip_add(zip, dest, src)
        src = File.expand_path(src)

        unless File.exists?(src)
          IronCore::Logger.error 'IronWorkerNG', "Can't find src with path='#{src}'"
          raise IronCore::IronError.new("Can't find src with path='#{src}'")
        end

        zip.add(dest, src)
      end

      def hash_string
        ''
      end

      def bundle(zip)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iron_worker_ng-0.6.1 lib/iron_worker_ng/feature/base.rb