Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

groundwork

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

groundwork - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

4

lib/builder.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc