Comparing version 0.0.4 to 0.0.5
@@ -26,3 +26,5 @@ var rbFile = 'https://raw.githubusercontent.com/groundworkjs/groundwork.rb/master/Groundwork.rb' | ||
provisioners[file.name.replace(/(.*)\.sh/, '$1')] = null | ||
action.write(file.download_url, file.name, '.groundwork/provisioners') | ||
action.read(file.download_url).then(function (contents) { | ||
action.write(contents, file.name, '.groundwork/provisioners') | ||
}) | ||
}) | ||
@@ -29,0 +31,0 @@ return provisioners |
{ | ||
"name": "groundwork", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Vagrantfile helper for provisioning VMs", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/groundworkjs", |
@@ -29,2 +29,38 @@ # Groundwork | ||
### Contents of groundwork.json | ||
By default this is what `groundwork init` will put in your `groundwork.json` file. Which is currently all the available provisioners. In the next release it will prompt you for the data. | ||
```json | ||
{ | ||
"box": "ubuntu/trusty64", | ||
"hostname": "groundwork-vm", | ||
"ip": "192.168.1.2", | ||
"cpus": 1, | ||
"memory": 512, | ||
"provisioners": { | ||
"mariadb": null, | ||
"nginx": null, | ||
"nodejs": null, | ||
"php": null, | ||
"pm2": null, | ||
"redis": null, | ||
"ubuntu": null, | ||
"vhost": null | ||
} | ||
} | ||
``` | ||
As you can see, the provisioners are key/value based. Key is the name of the provision file, and the value is a space delimited argument holder for what to pass off to the provisioner. | ||
For example, the option below will tell the `mariadb` provisioner to set the root password to `123abc`, create a `groundwork` database, and import the sql contents from `database.sql` file relevant to your project into it. | ||
```json | ||
{ | ||
"provisioners": { | ||
"mariadb": "password=123abc database=groundwork import=database.sql" | ||
} | ||
} | ||
``` | ||
## Testing | ||
@@ -31,0 +67,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12466
192
111
0