serverkit 0.2.8 → 0.2.9

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: 65f599078706665a41712a95fac9fceb098ab617
4
- data.tar.gz: c83b4d7ca7377f8029300646eb11f5ea9f105a95
3
+ metadata.gz: 4639eadceae553f5e22ca18831fc011062757c0e
4
+ data.tar.gz: 5325205604fde39bc1464fc43f8386e0a1b0443b
5
5
  SHA512:
6
- metadata.gz: f6ab8e2a496800ee62a5fcd8676e5d82fa8cd2b96c07a03462fc535d8f489e3f1e1d1731e042bfdff1c0d1bdb231733b23bfbb2f825179c80deaeec0f0b034de
7
- data.tar.gz: 36bfe26ca78820a08f6049237fb74793de3a711db6d03059f3b8140a0851f8d33c5f5c681881e369b1fe682158293decf62671416e1c9c4d6653f886c7265faf
6
+ metadata.gz: dc6227a370ef1fb976920e8c3c3f5d3a72a6aeff5700a4568b0a7f03cef5fe1b0183da9bdb9c4634bf373982f0e4b011d0d670d2fe3a15ebd654db374b6d1c8c
7
+ data.tar.gz: 45214bdbfadb0bafa3e8eaaf69ab67029137f592e772f9ef5a7b1aa9035e6b1b2c7a6cf83df4b870bcdc23de4815da0f16fafdbaa80acee0a8bd2f9063ae1055
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.2.9
2
+ - Support ActiveModel v3.2.12
3
+
1
4
  ## 0.2.8
2
5
  - Support SSH options injection on action class
3
6
 
data/README.md CHANGED
@@ -16,6 +16,7 @@ Configuration management toolkit for IT automation.
16
16
  - [Example](#example-1)
17
17
  - [Handler](#handler)
18
18
  - [Plug-in](#plug-in)
19
+ - [Vagrant](#vagrant)
19
20
 
20
21
  ## Usage
21
22
  Write a recipe, then run `serverkit` executable to validate, inspect, check, and apply the recipe.
@@ -232,3 +233,22 @@ gem "serverkit-defaults"
232
233
  gem "serverkit-karabiner"
233
234
  gem "serverkit-rbenv"
234
235
  ```
236
+
237
+ ## Vagrant
238
+ [vagrant-serverkit](https://github.com/r7kamura/vagrant-serverkit)
239
+ helps you provision your vagrant box with serverkit.
240
+
241
+ ```rb
242
+ # Vagrantfile
243
+ Vagrant.configure("2") do |config|
244
+ config.vm.box = "ubuntu/trusty64"
245
+ config.vm.provision :serverkit do |serverkit_config|
246
+ serverkit_config.recipe_path = "recipe.yml"
247
+ end
248
+ end
249
+ ```
250
+
251
+ ```
252
+ $ vagrant plugin install vagrant-serverkit
253
+ $ vagrant up
254
+ ```
@@ -7,7 +7,7 @@ module Serverkit
7
7
  def run
8
8
  backends.map do |backend|
9
9
  Thread.new do
10
- recipe.resources.map(&:dup).map do |resource|
10
+ recipe.resources.map(&:clone).map do |resource|
11
11
  resource.backend = backend
12
12
  resource.run_apply
13
13
  puts resource.inspect_apply_result
@@ -7,7 +7,7 @@ module Serverkit
7
7
  def run
8
8
  backends.map do |backend|
9
9
  Thread.new do
10
- recipe.resources.map(&:dup).each do |resource|
10
+ recipe.resources.map(&:clone).each do |resource|
11
11
  resource.backend = backend
12
12
  resource.run_check
13
13
  puts resource.inspect_check_result
@@ -106,7 +106,7 @@ module Serverkit
106
106
 
107
107
  # @return [Array<Serverkit::Errors::AttributeValidationError>]
108
108
  def attribute_validation_errors
109
- validate
109
+ valid?
110
110
  errors.map do |attribute_name, message|
111
111
  Serverkit::Errors::AttributeValidationError.new(self, attribute_name, message)
112
112
  end
@@ -1,3 +1,3 @@
1
1
  module Serverkit
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-11 00:00:00.000000000 Z
11
+ date: 2015-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel