Class: TyranoDsl::ElementsWriters::BackgroundWriter
- Inherits:
-
Object
- Object
- TyranoDsl::ElementsWriters::BackgroundWriter
- Includes:
- ElementsWritersModule
- Defined in:
- lib/tyrano_dsl/elements_writers/background_writer.rb
Overview
Write a background
Instance Method Summary collapse
Instance Method Details
#init_actions ⇒ Array
12 13 14 15 16 |
# File 'lib/tyrano_dsl/elements_writers/background_writer.rb', line 12 def init_actions [ TyranoDsl::FileActions::ClearDirectory.new(TyranoDsl::Elements::Background::BACKGROUND_DIRECTORY) ] end |
#write(background) ⇒ Array
20 21 22 23 24 25 26 27 28 |
# File 'lib/tyrano_dsl/elements_writers/background_writer.rb', line 20 def write(background) log {"Writing background [#{background.name}]"} [ TyranoDsl::FileActions::FileCopy.new( background.image_path, background.target_long_file_name ) ] end |