Skip to content

Instantly share code, notes, and snippets.

@jezhalford
Created September 25, 2013 10:56
Show Gist options
  • Select an option

  • Save jezhalford/6698045 to your computer and use it in GitHub Desktop.

Select an option

Save jezhalford/6698045 to your computer and use it in GitHub Desktop.

Revisions

  1. jezhalford created this gist Sep 25, 2013.
    10 changes: 10 additions & 0 deletions vphing
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/sh

    #
    # Execute phing commands inside a vagrant VM, without having
    # to `vagrant ssh` first.
    #

    CMD="cd /vagrant && phing $@"

    vagrant ssh --command "cd /vagrant && $CMD"