Sha256: 1913032176409543d6f3f16f824a3fd014440cc8c03c21481f611cc6dc59bdae

Contents?: true

Size: 393 Bytes

Versions: 3

Compression:

Stored size: 393 Bytes

Contents

# typed: false
# frozen_string_literal: true

require_relative "base"

module Hephaestus
  class SorbetGenerator < Generators::Base
    def sorbet
      copy_file("sorbet/custom.rbi", "sorbet/custom.rbi")
      Bundler.with_unbundled_env do
        run("bundle exec tapioca init")
        run("bundle exec tapioca require")
        run("script/typecheck --update")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hephaestus-0.1.3 lib/hephaestus/generators/sorbet_generator.rb
hephaestus-0.1.2 lib/hephaestus/generators/sorbet_generator.rb
hephaestus-0.1.1 lib/hephaestus/generators/sorbet_generator.rb