Sha256: c4ca5173d81c3e6b6db4516ad0454a7bee9ab17f3c10e84d60fe25e2ce429796

Contents?: true

Size: 350 Bytes

Versions: 2

Compression:

Stored size: 350 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("script/typecheck --update")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hephaestus-0.0.2 lib/hephaestus/generators/sorbet_generator.rb
hephaestus-0.0.1 lib/hephaestus/generators/sorbet_generator.rb