Browse Source

Add a sandbox pull command

Jason Crist 4 years ago
parent
commit
0fe5dd04b1
3 changed files with 14 additions and 3 deletions
  1. 8 3
      .gitignore
  2. 1 0
      .sandbox-ignore
  3. 5 0
      sandbox.sh

+ 8 - 3
.gitignore

@@ -13,10 +13,10 @@ vendor/
 .sandbox-config
 .sandbox-config
 .wp-env.override.json
 .wp-env.override.json
 
 
-#Ignoring headstart and language files
+#Ignoring headstart files
+*/inc/headstart/*
 */languages/*
 */languages/*
 !*/languages/*.pot
 !*/languages/*.pot
-*/inc/headstart/*
 
 
 #Retired themes we do not track in git
 #Retired themes we do not track in git
 able/
 able/
@@ -210,13 +210,16 @@ origin/
 orvis/
 orvis/
 oulipo/
 oulipo/
 oxygen/
 oxygen/
-p2-breathe/
 p2/
 p2/
+p2-breathe/
+p2-hub/
 p2020/
 p2020/
 pachyderm/
 pachyderm/
 panel/
 panel/
 paperpunch/
 paperpunch/
 parament/
 parament/
+partner-annotum-base/
+partner-annotum-sans/
 penscratch/
 penscratch/
 piano-black/
 piano-black/
 pictorico/
 pictorico/
@@ -308,6 +311,7 @@ treba/
 triton-lite/
 triton-lite/
 truly-minimal/
 truly-minimal/
 trvl/
 trvl/
+tt1-blocks/
 twenty-eight/
 twenty-eight/
 twentyeleven/
 twentyeleven/
 twentyfifteen/
 twentyfifteen/
@@ -319,6 +323,7 @@ twentyten/
 twentythirteen/
 twentythirteen/
 twentytwelve/
 twentytwelve/
 twentytwenty/
 twentytwenty/
+twentytwentyone/
 twentytwentyone-blocks/
 twentytwentyone-blocks/
 typo/
 typo/
 under-the-influence/
 under-the-influence/

+ 1 - 0
.sandbox-ignore

@@ -3,6 +3,7 @@
 .gitignore
 .gitignore
 .sandbox-config
 .sandbox-config
 .sandbox-ignore
 .sandbox-ignore
+.svn
 package-lock.json
 package-lock.json
 sandbox.sh
 sandbox.sh
 vendor
 vendor

+ 5 - 0
sandbox.sh

@@ -38,6 +38,11 @@ ssh -T $SANDBOX_USER@$SANDBOX_LOCATION << EOF
   svn up;
   svn up;
 EOF
 EOF
 
 
+elif [[ $1 == "pull" ]]; then
+
+  cmd="rsync -av --no-p --no-times --exclude-from='.sandbox-ignore' --exclude=$ignore_string $SANDBOX_USER@$SANDBOX_LOCATION:$SANDBOX_PUBLIC_THEMES_FOLDER/ ./ "
+  eval $cmd
+
 elif [[ $1 == "push" ]]; then
 elif [[ $1 == "push" ]]; then
 
 
   git remote update
   git remote update