drupal-vm-sites 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8e1c45ea542c942e07399c33d0bde9e0603300d
4
- data.tar.gz: b3107e93609ec2c1e9d876088374f248cd8c2733
3
+ metadata.gz: 28612aa2e9d3b501d78276e6af89b260fe115335
4
+ data.tar.gz: a7f0cdaa8daed747eac0194dc5b1983599caf5fe
5
5
  SHA512:
6
- metadata.gz: 514e8506e10c34b40f3dd57b58b1849069c6e4bd737f8b6d2cb7e3df59aa60c1c15eebd5adf1adaebc217ef8fa642a8182be4f5d3ac518357eff2fea334d79ef
7
- data.tar.gz: 5c2a388d9bfe45322184405c54b347c95c5971235a31eeaab820f23f89eee87a1c72185de64afeb7e37782c45d594126da315f18ea4e407455b8759f8deed332
6
+ metadata.gz: 7bf8d95153329a68f19fabf92d2e0ff160f6ee48a56a83ac1690b540b78f0118a953a9d6acf82f3492a86d231d490049a0a0fde70d7ae7b1925790c1c917f949
7
+ data.tar.gz: 3dcc1ba3580067953dd2856f2b8053b51ec793f3fd1e3f7132a6c2e54c85aad3fad49fabab66b1139cc273b460f2b52027ab5326ceea5283ab656a5fd941ab48
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # Drupal VM Config
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/drupal-vm-sites.svg)](https://badge.fury.io/rb/drupal-vm-sites)
4
+
3
5
  This Vagrant plugin makes it easy to manage multiple Drupal sites on a single Vagrant instance. It is used to generate a `config.yml` file for Drupal VM. See [Drupal VM Documentation](http://docs.drupalvm.com/en/latest/) for additional documentation.
4
6
 
5
7
  ## Setup
6
8
 
7
9
  1. `vagrant plugin install drupal-vm-sites`
8
10
 
9
- 2. TBD
11
+ 2. `touch sites.yml`
10
12
 
11
13
  3. Add Drupal websites to `sites.yml`
12
14
 
@@ -23,9 +25,7 @@ This Vagrant plugin makes it easy to manage multiple Drupal sites on a single Va
23
25
 
24
26
  **Note:** path defaults to `~/Sites/site.com/www` if not specified
25
27
 
26
- 4. TBD
27
-
28
- 5. `vagrant up`
28
+ 4. `vagrant up`
29
29
 
30
30
  You now have a functional Drupal vagrant install for your sites! Now you can configure Drupal.
31
31
 
@@ -25,7 +25,7 @@ module VagrantPlugins
25
25
 
26
26
  def self.call
27
27
  currentDirectory = Dir.pwd
28
- sites = YAML.load_file(currentDirectory + '/sites.yml')
28
+ sites = YAML.load_file(currentDirectory + '/drupal-vm-sites.yml')
29
29
 
30
30
  config = {};
31
31
  folders = [];
@@ -1,11 +1,15 @@
1
+ require "pathname"
2
+ require_relative "configure"
3
+
1
4
  module VagrantPlugins
2
5
  module DrupalVmSites
3
6
  class Plugin < Vagrant.plugin("2")
4
7
  name "Drupal Vm Sites"
5
8
 
6
9
  action_hook(:configure_sites, :environment_plugins_loaded) do |hook|
7
- require_relative "configure"
8
- Configure::call()
10
+ if File.file?(Dir.pwd + '/drupal-vm-sites.yml')
11
+ Configure::call()
12
+ end
9
13
  end
10
14
  end
11
15
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DrupalVmSites
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drupal-vm-sites
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - SKYCATCHFIRE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake