{"id":21003294,"url":"https://github.com/koding/vagrantutil","last_synced_at":"2025-05-15T00:31:49.612Z","repository":{"id":36840649,"uuid":"41147570","full_name":"koding/vagrantutil","owner":"koding","description":"A toolset to manage Vagrant boxes in Go","archived":false,"fork":false,"pushed_at":"2021-01-27T03:12:24.000Z","size":40,"stargazers_count":43,"open_issues_count":2,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-06-18T20:24:21.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koding.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":"2015-08-21T09:27:09.000Z","updated_at":"2024-05-11T00:53:50.000Z","dependencies_parsed_at":"2022-08-24T21:50:50.682Z","dependency_job_id":null,"html_url":"https://github.com/koding/vagrantutil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Fvagrantutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Fvagrantutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Fvagrantutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Fvagrantutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koding","download_url":"https://codeload.github.com/koding/vagrantutil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225318278,"owners_count":17455576,"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-11-19T08:24:39.857Z","updated_at":"2024-11-19T08:24:40.498Z","avatar_url":"https://github.com/koding.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vagrantutil [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/koding/vagrantutil) \n\nVagrantutil is a toolset for managing Vagrant boxes via an idiomatic Go\n(Golang) API. The package is work in progress, so please vendor it. Checkout\nthe examples below for the usage.\n\n## Install\n\n```bash\ngo get github.com/koding/vagrantutil\n```\n\n## Usage and Examples\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/koding/vagrantutil\"\n)\n\nfunc main() {\n\tvagrant, _ := vagrantutil.NewVagrant(\"myfolder\")\n\n\tvagrant.Create(`# -*- mode: ruby -*-\n# vi: set ft=ruby :\n\nVAGRANTFILE_API_VERSION = \"2\"\n\nVagrant.configure(VAGRANTFILE_API_VERSION) do |config|\n  config.vm.box = \"ubuntu/trusty64\"\n  config.vm.hostname = \"vagrant\"\n\n  config.vm.provider \"virtualbox\" do |vb|\n    # Use VBoxManage to customize the VM. For example to change memory:\n    vb.customize [\"modifyvm\", :id, \"--memory\", \"2048\", \"--cpus\", \"2\"]\n  end\nend\n`)\n\n\tstatus, _ := vagrant.Status() // prints \"NotCreated\"\n\n\t// starts the box\n\toutput, _ := vagrant.Up()\n\n\t// print the output\n\tfor line := range output {\n\t\tlog.Println(line)\n\t}\n\n\t// stop/halt the box\n\tvagrant.Halt()\n\n\t// destroy the box\n\tvagrant.Destroy()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoding%2Fvagrantutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoding%2Fvagrantutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoding%2Fvagrantutil/lists"}