Code Update
This commit is contained in:
		
							
								
								
									
										23
									
								
								src/commands/infra.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/commands/infra.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					wx-infra(){
 | 
				
			||||||
 | 
					    wx-login
 | 
				
			||||||
 | 
					    wx-ssh-sign &> /dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    echo "          >> Infra <<          "
 | 
				
			||||||
 | 
					    echo "------------------------------"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    case $USER in
 | 
				
			||||||
 | 
					        cwchristerw)
 | 
				
			||||||
 | 
					            if [[ -z $1 ]]
 | 
				
			||||||
 | 
					            then
 | 
				
			||||||
 | 
					                echo "Tag Required"
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					                cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
 | 
				
			||||||
 | 
					                ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1
 | 
				
			||||||
 | 
					                cd "$OLDPWD"
 | 
				
			||||||
 | 
					            fi
 | 
				
			||||||
 | 
					            ;;
 | 
				
			||||||
 | 
					        *)
 | 
				
			||||||
 | 
					            echo "User Unsupported"
 | 
				
			||||||
 | 
					            ;;
 | 
				
			||||||
 | 
					    esac
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										24
									
								
								wx
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								wx
									
									
									
									
									
								
							@@ -242,6 +242,30 @@ Management Commands:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					wx-infra(){
 | 
				
			||||||
 | 
					    wx-login
 | 
				
			||||||
 | 
					    wx-ssh-sign &> /dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    echo "          >> Infra <<          "
 | 
				
			||||||
 | 
					    echo "------------------------------"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    case $USER in
 | 
				
			||||||
 | 
					        cwchristerw)
 | 
				
			||||||
 | 
					            if [[ -z $1 ]]
 | 
				
			||||||
 | 
					            then
 | 
				
			||||||
 | 
					                echo "Tag Required"
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					                cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
 | 
				
			||||||
 | 
					                ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1
 | 
				
			||||||
 | 
					                cd "$OLDPWD"
 | 
				
			||||||
 | 
					            fi
 | 
				
			||||||
 | 
					            ;;
 | 
				
			||||||
 | 
					        *)
 | 
				
			||||||
 | 
					            echo "User Unsupported"
 | 
				
			||||||
 | 
					            ;;
 | 
				
			||||||
 | 
					    esac
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
wx-settings(){
 | 
					wx-settings(){
 | 
				
			||||||
    wx-login
 | 
					    wx-login
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user