vagrant-serverkit 0.0.4 → 0.0.5

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: 354b6b9060243f6707f4ebce78fed418924a324f
4
- data.tar.gz: bc19f34a13f2e942fb9fc96a593bb5eb715fa236
3
+ metadata.gz: e3b650a9083301b404fa1e13d92295c3ec9ed633
4
+ data.tar.gz: 97888398de18ce5105873f48f3ac4573d074e7fc
5
5
  SHA512:
6
- metadata.gz: bea3299403b52b1c25c51a81479dc555a1bee25bb711060252f097746bc04c0927c0c212be76c1f328cffc472a42cc787d3bc387204d29328513f5809c76926f
7
- data.tar.gz: f3e2fa97b00373953908bd2fa5c922f17f99c6b391a83945f2d220d6dbc863c5bdd40ea97ff1a0a38db129b7506b788504d1ec04cf3d129a7a2dfdcda47baf73
6
+ metadata.gz: a1295db8868a5f8ccac1992a57bd187e45f03c0d795c6da532811152a696bf7b44dba6226e45af79571d1c38cd8ea4dd4be936fd215f3042bce488f6810000a6
7
+ data.tar.gz: 480afee2c956f71291423813bad7d0717598e64b1ff994b641c0fda10884544f25097c6cfe49d3c16e8ae0f53b6ea291e708b2aed69e2ff7754320932a1b3f96
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.5
2
+ - Support log_level config
3
+
1
4
  ## 0.0.4
2
5
  - Update dependent serverkit gem with 0.3.0 or higher
3
6
 
data/README.md CHANGED
@@ -17,7 +17,8 @@ $ vagrant plugin install vagrant-serverkit
17
17
  The following configurations are available on serverkit provisioner:
18
18
 
19
19
  - `recipe_path` - Path to serverkit recipe (e.g. `"recipe.yml"`)
20
- - `variables_path` - Path to serverkit recipe variables (optional)
20
+ - `variables_path` - Path to serverkit recipe variables (e.g. `"variables.yml"`, optional)
21
+ - `log_level` - Log level (e.g. `"DEBUG"`, optional)
21
22
 
22
23
  ### Example
23
24
  Here is an example to provision a vagrant box with Serverkit.
data/Vagrantfile CHANGED
@@ -2,6 +2,7 @@ Vagrant.configure("2") do |config|
2
2
  config.vm.box = "ubuntu/trusty64"
3
3
 
4
4
  config.vm.provision :serverkit do |serverkit_config|
5
+ serverkit_config.log_level = "DEBUG"
5
6
  serverkit_config.recipe_path = "recipe.yml.erb"
6
7
  serverkit_config.variables_path = "variables.yml"
7
8
  end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Serverkit
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -3,6 +3,7 @@ require "vagrant"
3
3
  module VagrantPlugins
4
4
  module Serverkit
5
5
  class Config < Vagrant.plugin("2", :config)
6
+ attr_accessor :log_level
6
7
  attr_accessor :recipe_path
7
8
  attr_accessor :variables_path
8
9
 
@@ -1,3 +1,4 @@
1
+ require "logger"
1
2
  require "serverkit"
2
3
  require "vagrant"
3
4
 
@@ -7,6 +8,7 @@ module VagrantPlugins
7
8
  def provision
8
9
  ::Serverkit::Actions::Apply.new(
9
10
  hosts: host,
11
+ log_level: log_level,
10
12
  recipe_path: config.recipe_path,
11
13
  ssh_options: ssh_options,
12
14
  variables_path: config.variables_path,
@@ -29,6 +31,11 @@ module VagrantPlugins
29
31
  machine.ssh_info[:host]
30
32
  end
31
33
 
34
+ # @return [Fixnum]
35
+ def log_level
36
+ ::Serverkit::Command::LOG_LEVELS_TABLE[config.log_level] || ::Logger::UNKNOWN
37
+ end
38
+
32
39
  # @return [Fixnum, nil]
33
40
  def port
34
41
  if machine.ssh_info[:port]
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
15
  spec.require_paths = ["lib"]
16
16
 
17
- spec.add_runtime_dependency "serverkit", ">= 0.3.0"
17
+ spec.add_runtime_dependency "serverkit", ">= 0.4.0"
18
18
  spec.add_development_dependency "bundler"
19
19
  spec.add_development_dependency "rake", "~> 10.0"
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-serverkit
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
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-12 00:00:00.000000000 Z
11
+ date: 2015-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: serverkit
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.0
19
+ version: 0.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.0
26
+ version: 0.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement