{"id":16181745,"url":"https://github.com/ericclemmons/vagrant-shim","last_synced_at":"2025-04-07T12:25:04.461Z","repository":{"id":4339990,"uuid":"5475809","full_name":"ericclemmons/vagrant-shim","owner":"ericclemmons","description":"Transparently run commands through your Vagrant VM.","archived":false,"fork":false,"pushed_at":"2012-08-20T01:19:27.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T07:15:42.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericclemmons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-20T01:18:24.000Z","updated_at":"2014-04-14T10:08:43.000Z","dependencies_parsed_at":"2022-09-12T03:30:18.295Z","dependency_job_id":null,"html_url":"https://github.com/ericclemmons/vagrant-shim","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fvagrant-shim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fvagrant-shim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fvagrant-shim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fvagrant-shim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericclemmons","download_url":"https://codeload.github.com/ericclemmons/vagrant-shim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247650438,"owners_count":20973274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T06:27:11.349Z","updated_at":"2025-04-07T12:25:04.438Z","avatar_url":"https://github.com/ericclemmons.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vagrant Shim\n\n_Version 0.2_\n\nTransparently runs commands through your [Vagrant](http://vagrantup.com/) VM.\n\nWhen developing with Vagrant, I was constantly switching between my local terminal\nwhen making commits and my Vagrant terminal when running tests, DB commands,\nand various other app-specific commands.\n\nWith this tool, I can run my commands locally \u0026 remotely from within the same window\nwithout affecting workflow!\n\n\n## Installation\n\n### 1. Install dependencies\n\n    $ curl -s http://getcomposer.org/installer | php\n    $ php composer.phar install\n\n\n### 2. Install `vagrant-shim`\n\n_(Defaults to `/usr/local/bin`)_\n\n    $ ./bin/vagrant-shim install\n\n\n### 3. Add the following to `~/.bash_profile` or `~/.profile`\n\n    eval \"$(vagrant-shim enable)\"\n\n\n- - -\n\n\n## Usage\n\n### 1. Shim useful programs\n\n    $ vagrant-shim shim phpunit ...\n\n\n### 2. Run locally, as normal\n\n\t$ cd ~/Sites/My/Normal/App/tests\n\t$ phpunit\n    ...normal output...\n\n\n### 3. Run remotely, via shim\n\n    $ cd ~/Sites/My/Vagrant/App/tests\n    $ phpunit\n    Shimming...\n    ...shimmed output...\n\nThe shim will automatically `cd` to the correct directory before\nrunning your command inside Vagrant!\n\n\n### 4. Run remotely, explicitly\n\n    $ vagrant-shim run php -m\n\n\n### 5. Bypass shim\n\n    $ phpunit --no-shim ...\n    Bypassing...\n    ...normal output...\n\n\n### 4. Get Help\n\n    $ vagrant-shim\n    ...lists all commands...\n\n    $ vagrant-shim enable --help\n    ...help text for \"enable\"\n\n\n- - -\n\n\n## Author\n\n[Eric Clemmons](http://github.com/ericclemmons)\n\n\n## License\n\nCopyright (c) 2012 Eric Clemmons\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericclemmons%2Fvagrant-shim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericclemmons%2Fvagrant-shim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericclemmons%2Fvagrant-shim/lists"}