File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,27 @@ def copy_template(file, target_path = nil)
147147 require "tmpdir"
148148 Dir . mktmpdir ( "logstruct_rails_new_" ) do |tmpdir |
149149 Dir . chdir ( tmpdir ) do
150- T . unsafe ( self ) . system ( clean_env , *cmd ) || abort ( "Failed to create Rails application" )
150+ # Call system with a statically-sized argument list to satisfy Sorbet
151+ ruby_exec , dash_e , loader_code , = cmd
152+ system (
153+ clean_env ,
154+ ruby_exec ,
155+ dash_e ,
156+ loader_code ,
157+ "new" ,
158+ RAILS_APP_DIR ,
159+ "--skip-git" ,
160+ "--skip-keeps" ,
161+ "--skip-action-cable" ,
162+ "--skip-sprockets" ,
163+ "--skip-javascript" ,
164+ "--skip-hotwire" ,
165+ "--skip-jbuilder" ,
166+ "--skip-asset-pipeline" ,
167+ "--skip-bootsnap" ,
168+ "--api" ,
169+ "-T"
170+ ) || abort ( "Failed to create Rails application" )
151171 end
152172 end
153173
You can’t perform that action at this time.
0 commit comments