Module: TablespaceType

Defined in:
lib/puppet/type/ora_tablespace/tablespace_type.rb

Overview

See the file “LICENSE” for the full license governing this code.

doc

Instance Method Summary collapse

Instance Method Details

#tablespace_typeObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/puppet/type/ora_tablespace/tablespace_type.rb', line 8

def tablespace_type
  case resource[:contents].to_s
  when 'permanent', 'undo'
    'datafile'
  when 'temporary'
    'tempfile'
  else
    fail "internal error. #{resource[:contents]} is an invalid content type."
  end
end