File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ - The only real difference with these two shells is one is admin standard and invisible on canvas.
2+
3+ - Also the admin shell has the "insfrastruture" playbook command exposed in GUI as well. It's present on regular shell but hidden.
4+
Original file line number Diff line number Diff line change 1+ """
2+ Will run "shellfoundry install" on all shell subdirectories of current folder
3+ """
4+
5+ import os
6+ import subprocess
7+
8+
9+ def install_shell (dir_name ):
10+ my_path = os .path .abspath (__file__ )
11+ mydir = os .path .dirname (my_path )
12+ shell_dir_path = os .path .join (mydir , dir_name )
13+ subprocess .call (["shellfoundry" , "install" ], cwd = shell_dir_path )
14+ print ("===========================" )
15+
16+
17+ directories_in_curdir = [d for d in os .listdir (os .curdir ) if os .path .isdir (d )]
18+ if not directories_in_curdir :
19+ raise Exception ("No subdirectories in this folder" )
20+
21+ for shell_dir in directories_in_curdir :
22+ install_shell (shell_dir )
Original file line number Diff line number Diff line change 1+ """
2+ Will run "shellfoundry install" on all shell subdirectories of current folder
3+ """
4+
5+ import os
6+ import subprocess
7+
8+
9+ def pack_shell (dir_name ):
10+ my_path = os .path .abspath (__file__ )
11+ mydir = os .path .dirname (my_path )
12+ shell_dir_path = os .path .join (mydir , dir_name )
13+ subprocess .call (["shellfoundry" , "pack" ], cwd = shell_dir_path )
14+ print ("===========================" )
15+
16+
17+ directories_in_curdir = [d for d in os .listdir (os .curdir ) if os .path .isdir (d )]
18+ if not directories_in_curdir :
19+ raise Exception ("No subdirectories in this folder" )
20+
21+ for shell_dir in directories_in_curdir :
22+ pack_shell (shell_dir )
You can’t perform that action at this time.
0 commit comments