Skip to content

Commit a922d31

Browse files
committed
added readme
1 parent 2a75418 commit a922d31

3 files changed

Lines changed: 48 additions & 0 deletions

File tree

2G-Service/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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+

2G-Service/install_all_shells.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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)

2G-Service/pack_all_shells.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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)

0 commit comments

Comments
 (0)