We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a9df11 + 5928815 commit 6019e8fCopy full SHA for 6019e8f
chef/cookbooks/network/libraries/helpers.rb
@@ -7,4 +7,13 @@ def self.wrap_ip(address)
7
address.to_s
8
end
9
10
+
11
+ def self.ipv6(address)
12
+ require "ipaddr"
13
+ if IPAddr.new(address).ipv6?
14
+ true
15
+ else
16
+ false
17
+ end
18
19
crowbar_framework/config/application.rb
@@ -22,6 +22,7 @@ class Application < Rails::Application
22
# Explicitely eager load /lib/crowbar/lock so we can use SharedNonBlocking
23
# with threading without hitting circular dependencies
24
config.eager_load_paths += Dir["#{config.root}/lib/crowbar/lock"]
25
+ config.eager_load_paths += Dir["#{config.root}/../chef/cookbooks/network/libraries"]
26
27
config.autoload_paths += %W(
28
#{config.root}/lib
0 commit comments