Class: Hephaestus::SorbetGenerator
- Inherits:
-
Generators::Base
- Object
- Rails::Generators::Base
- Generators::Base
- Hephaestus::SorbetGenerator
- Defined in:
- lib/hephaestus/generators/sorbet_generator.rb
Instance Method Summary collapse
Methods inherited from Generators::Base
default_source_root, inherited
Methods included from ExitOnFailure
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #gem, #replace_in_file, #replace_in_files
Instance Method Details
#sorbet ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/hephaestus/generators/sorbet_generator.rb', line 8 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/sorbet --update") end end |