Module: ChefUtils::DSL::Backend
- Includes:
- Internal
- Defined in:
- lib/chef-utils/dsl/backend.rb
Instance Method Summary collapse
-
#local_mode? ⇒ Boolean
Determine if the backend is local.
-
#target_mode? ⇒ Boolean
Determine if the backend is remote.
Instance Method Details
#local_mode? ⇒ Boolean
Determine if the backend is local
12 13 14 |
# File 'lib/chef-utils/dsl/backend.rb', line 12 def local_mode? node["platform_backend"] == "local" end |
#target_mode? ⇒ Boolean
Determine if the backend is remote
22 23 24 |
# File 'lib/chef-utils/dsl/backend.rb', line 22 def target_mode? node["platform_backend"] != "local" end |