Module: Shell::Extensions::String

Included in:
String
Defined in:
lib/chef/shell/ext.rb

Instance Method Summary collapse

Instance Method Details

#on_off_to_boolObject



148
149
150
151
152
153
154
155
156
157
# 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