module Shell::Extensions::String

Public Instance Methods

on_off_to_bool() click to toggle source
# File lib/chef/shell/ext.rb, line 148
def on_off_to_bool
  case self
  when "on"
    true
  when "off"
    false
  else
    self
  end
end