@@ -240,25 +240,31 @@ def import_tmuxinator(sconf):
240240
241241 tmuxp_config = {}
242242
243+ logger .error (sconf )
244+
243245 if 'project_name' in sconf :
244- tmuxp_config ['session_name' ] = sconf [ 'project_name' ]
246+ tmuxp_config ['session_name' ] = sconf . pop ( 'project_name' )
245247 elif 'name' in sconf :
246- tmuxp_config ['session_name' ] = sconf [ 'name' ]
248+ tmuxp_config ['session_name' ] = sconf . pop ( 'name' )
247249 else :
248250 tmuxp_config ['session_name' ] = None
249251
252+ logger .error (tmuxp_config )
253+
250254 if 'cli_args' in sconf :
251255 tmuxp_config ['config' ] = sconf ['cli_args' ]
252256
253257 if '-f' in tmuxp_config ['config' ]:
254258 tmuxp_config ['config' ] = tmuxp_config [
255- 'config' ].replace ('-f' , '' ).strip ()
259+ 'config'
260+ ].replace ('-f' , '' ).strip ()
256261 elif 'tmux_options' in sconf :
257262 tmuxp_config ['config' ] = sconf ['tmux_options' ]
258263
259264 if '-f' in tmuxp_config ['config' ]:
260265 tmuxp_config ['config' ] = tmuxp_config [
261- 'config' ].replace ('-f' , '' ).strip ()
266+ 'config'
267+ ].replace ('-f' , '' ).strip ()
262268
263269 if 'socket_name' in sconf :
264270 tmuxp_config ['socket_name' ] = sconf ['socket_name' ]
@@ -267,7 +273,7 @@ def import_tmuxinator(sconf):
267273
268274 if 'tabs' in sconf :
269275 sconf ['windows' ] = sconf .pop ('tabs' )
270-
276+ logger . error ( tmuxp_config )
271277 if 'pre' in sconf and 'pre_window' in sconf :
272278 tmuxp_config ['shell_command' ] = sconf ['pre' ]
273279
@@ -287,7 +293,7 @@ def import_tmuxinator(sconf):
287293 tmuxp_config ['shell_command_before' ].append (
288294 'rbenv shell %s' % sconf ['rbenv' ]
289295 )
290-
296+ logger . error ( tmuxp_config )
291297 for w in sconf ['windows' ]:
292298 for k , v in w .items ():
293299
@@ -312,10 +318,9 @@ def import_tmuxinator(sconf):
312318 if 'layout' in v :
313319 windowdict ['layout' ] = v ['layout' ]
314320 tmuxp_config ['windows' ].append (windowdict )
315-
321+ logger . error ( tmuxp_config )
316322 return tmuxp_config
317323
318-
319324def import_teamocil (sconf ):
320325 '''Import yaml configs from `teamocil`_.
321326
0 commit comments