RubyGems
npm
Organizations
Log in
Sign up
RubyGems
gluez
Versions diffs
0.4.3 → 0.4.4
gluez 0.4.3 → 0.4.4
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/gluez.rb
+4
-0
metadata
+1
-1
data/lib/gluez.rb
CHANGED
Viewed
@@ -13,6 +13,10 @@ class Object
13
13
def resource(name, &block)
14
14
Gluez::Context.register(name.to_s.underscore, &block)
15
15
end
16
+
def role?(name)
17
+
roles = ($roles || [])
18
+
roles.include?(name.to_s) || roles.include?(name.to_sym)
19
+
end
16
20
end
17
21
18
22
module Gluez
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: gluez
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.4.
3
4
+
version: 0.4.
4
5
5
prerelease:
6
6
platform: ruby
7
7
authors: