This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ANSIBLE_PATH = __dir__ # absolute path to Ansible directory on host machine | |
ANSIBLE_PATH_ON_VM = '/home/vagrant/trellis'.freeze # absolute path to Ansible directory on virtual machine | |
require File.join(ANSIBLE_PATH, 'lib', 'trellis', 'vagrant') | |
require File.join(ANSIBLE_PATH, 'lib', 'trellis', 'config') | |
require 'yaml' | |
vconfig = YAML.load_file("#{ANSIBLE_PATH}/vagrant.default.yml") | |
if File.exist?("#{ANSIBLE_PATH}/vagrant.local.yml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My custom api endpoint: | |
// Post Gravity Form submission | |
public static function postGravityForm($request) { | |
$data = $request->get_params(); | |
if (isset($data['form_id'])) { | |
$gf_url = get_rest_url() . 'gf/v2/forms/'. $data['form_id'] .'/submissions'; | |
// Send request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ## Globals | |
var argv = require('minimist')(process.argv.slice(2)); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync').create(); | |
var changed = require('gulp-changed'); | |
var concat = require('gulp-concat'); | |
var flatten = require('gulp-flatten'); | |
var gulp = require('gulp'); | |
var gulpif = require('gulp-if'); | |
var imagemin = require('gulp-imagemin'); |