Class: RightScale::MetadataWriters::DictionaryMetadataWriter

Inherits:
RightScale::MetadataWriter show all
Defined in:
lib/clouds/metadata_writers/dictionary_metadata_writer.rb

Overview

Dictionary (key=value pairs) writer.

Constant Summary

Constants inherited from RightScale::MetadataWriter

RightScale::MetadataWriter::DEFAULT_FILE_MODE

Instance Attribute Summary

Attributes inherited from RightScale::MetadataWriter

#file_extension, #file_name_prefix, #output_dir_path

Instance Method Summary collapse

Methods inherited from RightScale::MetadataWriter

escape_double_quotes, escape_single_quotes, first_line_of, #read, #write

Constructor Details

#initialize(options) ⇒ DictionaryMetadataWriter

Initializer.

Parameters

options(String)

dotted extension for dictionary files or nil



18
19
20
21
22
23
24
25
# File 'lib/clouds/metadata_writers/dictionary_metadata_writer.rb', line 18

def initialize(options)
  # defaults
  options = options.dup
  options[:file_extension] ||= '.dict'

  # super
  super(options)
end