vagrant-properties 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b6c080af0ea06a507910a66f744489066ec30c8
4
- data.tar.gz: 3506e06150cdd02a9d12287abf1cc951f4f440f2
3
+ metadata.gz: 1fd70e063b39ef219915c5a801e3a3a2bd97e15a
4
+ data.tar.gz: 518150d31fad2720ff7e7857137acf637d65ae77
5
5
  SHA512:
6
- metadata.gz: 071c9c189ef27e1d7122e981e6be4038fcae9eb291a0af817d92a7578f8dbd42e8c448a6757b70a48b5997e56c0e18a455ee54512e8d228f4bb4c7ab0fa16298
7
- data.tar.gz: a26840bfc33831dcabc1bc1a9f94072aad862b3e0c055fc626589d3d3f4e2791b23c206215d03e71b478a4dcaadb1d5838beba46b19fb24e5af311ce27996b98
6
+ metadata.gz: b2ec00f84f43165384e44a4ec548f15069a256a971972c3755d8b34caea8c45f6193588ee6433889f04ac07a60504ce6872fe6cfeb4ee66975d3b0d7b871b1dd
7
+ data.tar.gz: e61b8aab9ef9b085c67352e74c7611453216ba807e9ad7ca877ecf9ebb75f99265b9bc14958c8ba2dbb6055138f39489929ce0f4edaa5d2287377e78a97d617b
data/README.md CHANGED
@@ -23,7 +23,20 @@ Or install it yourself as:
23
23
  Usage
24
24
  -----
25
25
 
26
- TODO: Write usage instructions here
26
+ Vagrantfile:
27
+
28
+ ```ruby
29
+ # -*- mode: ruby -*-
30
+ # vi: set ft=ruby :
31
+
32
+ unless Vagrant.has_plugin?('vagrant-properties', '~> 0.9')
33
+ action = Vagrant.has_plugin?('vagrant-properties') ? 'update' : 'install'
34
+ Dir.chdir(Dir.home) { system "vagrant plugin #{action} vagrant-properties" }
35
+ end
36
+
37
+ Vagrant.configure('2') do |config|
38
+ ...
39
+ ```
27
40
 
28
41
  Contributing
29
42
  ------------
@@ -5,6 +5,10 @@ module VagrantProperties
5
5
  class Config < Vagrant.plugin('2', :config)
6
6
  attr_writer :properties_path
7
7
 
8
+ def to_hash
9
+ self.class.properties
10
+ end
11
+
8
12
  def named(key)
9
13
  self.class.properties[key.to_sym]
10
14
  end
@@ -1,3 +1,3 @@
1
1
  module VagrantProperties
2
- VERSION = '0.8.0'
2
+ VERSION = '0.9.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-properties
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-19 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 2.4.5
77
+ rubygems_version: 2.5.1
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: Mnagement multiple machines.