server-blender-manifest 0.0.12 → 0.0.13
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.
- data/VERSION +1 -1
- data/lib/blender/manifest/init.rb +0 -5
- data/lib/blender/manifest/root.rb +10 -9
- data/server-blender-manifest.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
@@ -2,7 +2,9 @@ require 'ruby-debug'
|
|
2
2
|
|
3
3
|
module Blender
|
4
4
|
module Manifest; end
|
5
|
-
module Recipes
|
5
|
+
module Recipes
|
6
|
+
module Os; end
|
7
|
+
end
|
6
8
|
end
|
7
9
|
|
8
10
|
require 'blender/manifest/init'
|
@@ -23,18 +25,17 @@ class Root < ::ShadowPuppet::Manifest
|
|
23
25
|
def execute_user_recipe
|
24
26
|
raise "no RECIPE to execute" unless recipe = ENV['RECIPE']
|
25
27
|
|
26
|
-
#
|
27
|
-
|
28
|
-
instance_eval(code, recipe)
|
29
|
-
|
30
|
-
# next load OS specific recipe. This gives user's recipe
|
31
|
-
# the opportunity to redefine it if needed
|
32
|
-
_os = os.downcase
|
28
|
+
# load OS specific recipe.
|
29
|
+
_os = Facter.value(:operatingsystem).downcase
|
33
30
|
unless respond_to?(_os)
|
34
|
-
mix _os
|
31
|
+
mix "os/#{_os}"
|
35
32
|
end
|
36
33
|
send _os
|
37
34
|
|
35
|
+
# load user's recipe
|
36
|
+
code = open(recipe).read
|
37
|
+
instance_eval(code, recipe)
|
38
|
+
|
38
39
|
end
|
39
40
|
recipe :execute_user_recipe
|
40
41
|
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{server-blender-manifest}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.13"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Vitaly Kushner"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-21}
|
13
13
|
s.description = %q{This gem is part of the server-blender family (http://astrails.com/opensource/server-blender)
|
14
14
|
It contains server-side root manifest implementation for blender recipes. See server-blender for more information.
|
15
15
|
}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 13
|
9
|
+
version: 0.0.13
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Vitaly Kushner
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-21 00:00:00 +03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|