drupal-vm-sites 0.0.2 → 0.0.4

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: 37eb2af4855778e961c16b06c6bafe4c5c664d53
4
- data.tar.gz: 3b10c3f80b0c1c6d8860115171fb8e9e07306a8d
3
+ metadata.gz: c8e1c45ea542c942e07399c33d0bde9e0603300d
4
+ data.tar.gz: b3107e93609ec2c1e9d876088374f248cd8c2733
5
5
  SHA512:
6
- metadata.gz: 2fd30805779f5b5ebf1cd65c44083da2e1a6a1bb9af5bbe6621aa650471c0281fea4692e77c16fbcdcd296fb14ad5c879394353dbbffe270ebf5163c0b3966f6
7
- data.tar.gz: b8a30e3143803bd1d23c114b90331f97f1f1c8787db65ca5c02465daba5427f9dbdbe544eae9a55a55d99b66476ee8181a27d976a9c8143367a6d93e50d4a3a0
6
+ metadata.gz: 514e8506e10c34b40f3dd57b58b1849069c6e4bd737f8b6d2cb7e3df59aa60c1c15eebd5adf1adaebc217ef8fa642a8182be4f5d3ac518357eff2fea334d79ef
7
+ data.tar.gz: 5c2a388d9bfe45322184405c54b347c95c5971235a31eeaab820f23f89eee87a1c72185de64afeb7e37782c45d594126da315f18ea4e407455b8759f8deed332
data/README.md CHANGED
@@ -45,4 +45,3 @@ Export database from the base site and then use [Drush](http://www.drush.org/en/
45
45
 
46
46
  drush @skycatchfire.dev sql-drop
47
47
  drush @skycatchfire.dev sql-cli < ~/my-sql-dump-file-name.sql
48
- 0
@@ -2,9 +2,9 @@ require 'yaml'
2
2
 
3
3
  module VagrantPlugins
4
4
  module DrupalVmSites
5
- class Command < Vagrant.plugin(2, :command)
5
+ class Configure
6
6
 
7
- def editConfig(url, path)
7
+ def self.editConfig(url, path)
8
8
  projectDirectory = File.expand_path(File.dirname(__FILE__) + '/templates/')
9
9
  sitesConfig = YAML.load_file(projectDirectory + '/config-template.yml')
10
10
 
@@ -23,7 +23,7 @@ module VagrantPlugins
23
23
  return sitesConfig;
24
24
  end
25
25
 
26
- def execute
26
+ def self.call
27
27
  currentDirectory = Dir.pwd
28
28
  sites = YAML.load_file(currentDirectory + '/sites.yml')
29
29
 
@@ -3,9 +3,9 @@ module VagrantPlugins
3
3
  class Plugin < Vagrant.plugin("2")
4
4
  name "Drupal Vm Sites"
5
5
 
6
- command "config-sites" do
7
- require_relative "command"
8
- Command
6
+ action_hook(:configure_sites, :environment_plugins_loaded) do |hook|
7
+ require_relative "configure"
8
+ Configure::call()
9
9
  end
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DrupalVmSites
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drupal-vm-sites
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SKYCATCHFIRE
@@ -37,7 +37,7 @@ files:
37
37
  - Rakefile
38
38
  - drupal-vm-sites.gemspec
39
39
  - lib/drupal-vm-sites.rb
40
- - lib/drupal-vm-sites/command.rb
40
+ - lib/drupal-vm-sites/configure.rb
41
41
  - lib/drupal-vm-sites/plugin.rb
42
42
  - lib/drupal-vm-sites/templates/config-template.yml
43
43
  - lib/drupal-vm-sites/version.rb