Module: ChefUtils::DSL::OS
Instance Method Summary collapse
-
#darwin?(node = __getnode) ⇒ Boolean
Determine if the current node is Darwin.
-
#linux?(node = __getnode) ⇒ Boolean
Determine if the current node is Linux.
Instance Method Details
#darwin?(node = __getnode) ⇒ Boolean
Determine if the current node is Darwin.
51 52 53 |
# File 'lib/chef-utils/dsl/os.rb', line 51 def darwin?(node = __getnode) node["os"] == "darwin" end |
#linux?(node = __getnode) ⇒ Boolean
Determine if the current node is Linux.
40 41 42 |
# File 'lib/chef-utils/dsl/os.rb', line 40 def linux?(node = __getnode) node["os"] == "linux" end |