Sha256: 64c3b7d584e87783f5c8cc834accbd258f09ccd4170b64e9def713a2b87c4780

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

require "rails/version"

module Jobshop
  class DummyApp
    class << self
      def destroy!
        FileUtils.rmtree(path)
      end

      def exist?
        Dir.exist?(path)
      end

      def rakefile
        File.join(path, "Rakefile")
      end

      def path
        @path ||= File.expand_path("spec/dummy-#{Rails::VERSION::STRING}")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jobshop-0.0.101 lib/jobshop/dummy_app.rb