Sha256: 632dd4b9e9642402960109fda9b77031b1f04d1225f5f51706e3f9f299ef2b89

Contents?: true

Size: 754 Bytes

Versions: 31

Compression:

Stored size: 754 Bytes

Contents

module Steep
  module Drivers
    module Utils
      module DriverHelper
        attr_accessor :steepfile

        def load_config(path: steepfile || Pathname("Steepfile"))
          raise "Cannot find a configuration at #{path}: `steep init` to scaffold" unless path.file?

          steep_file_path = path.absolute? ? path : Pathname.pwd + path
          Project.new(steepfile_path: steep_file_path).tap do |project|
            Project::DSL.parse(project, path.read, filename: path.to_s)
          end
        end

        def type_check(project)
          project.targets.each do |target|
            Steep.logger.tagged "target=#{target.name}" do
              target.type_check
            end
          end
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
steep-0.42.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.41.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.40.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.39.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.38.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.37.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.36.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.35.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.34.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.33.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.32.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.31.1 lib/steep/drivers/utils/driver_helper.rb
steep-0.31.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.30.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.29.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.28.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.27.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.25.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.24.0 lib/steep/drivers/utils/driver_helper.rb
steep-0.23.0 lib/steep/drivers/utils/driver_helper.rb