Class: RightScale::MetadataWriters::ShellMetadataWriter
- Inherits:
-
RightScale::MetadataWriter
- Object
- RightScale::MetadataWriter
- RightScale::MetadataWriters::ShellMetadataWriter
- Defined in:
- lib/clouds/metadata_writers/shell_metadata_writer.rb
Overview
Shell script writer.
Constant Summary
Constants inherited from RightScale::MetadataWriter
RightScale::MetadataWriter::DEFAULT_FILE_MODE
Instance Attribute Summary collapse
-
#generation_command ⇒ Object
Returns the value of attribute generation_command.
Attributes inherited from RightScale::MetadataWriter
#file_extension, #file_name_prefix, #output_dir_path
Instance Method Summary collapse
-
#initialize(options) ⇒ ShellMetadataWriter
constructor
Initializer.
Methods inherited from RightScale::MetadataWriter
escape_double_quotes, escape_single_quotes, first_line_of, #read, #write
Constructor Details
#initialize(options) ⇒ ShellMetadataWriter
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/clouds/metadata_writers/shell_metadata_writer.rb', line 20 def initialize() # defaults = .dup default_file_extension = RightScale::Platform.windows? ? '.bat' : '.sh' [:file_extension] ||= default_file_extension @generation_command = [:generation_command] # super super() end |
Instance Attribute Details
#generation_command ⇒ Object
Returns the value of attribute generation_command.
14 15 16 |
# File 'lib/clouds/metadata_writers/shell_metadata_writer.rb', line 14 def generation_command @generation_command end |