le1t0-deprec 2.1.6.058 → 2.1.6.059
Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,13 @@ module Deprec2
|
|
13
13
|
ENV['ROLES'] = old_roles.to_s unless ENV['HOSTS']
|
14
14
|
end
|
15
15
|
|
16
|
+
def filter_hosts(hostfilter)
|
17
|
+
old_hostfilter = ENV['HOSTFILTER']
|
18
|
+
ENV['HOSTFILTER'] = hostfilter.to_s
|
19
|
+
yield
|
20
|
+
ENV['HOSTFILTER'] = old_hostfilter.to_s
|
21
|
+
end
|
22
|
+
|
16
23
|
# Temporarily ignore ROLES and HOSTS
|
17
24
|
def ignoring_roles_and_hosts
|
18
25
|
old_roles = ENV['ROLES']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: le1t0-deprec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
9
|
- 6
|
10
|
-
-
|
11
|
-
version: 2.1.6.
|
10
|
+
- 59
|
11
|
+
version: 2.1.6.059
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Le1t0
|