Class: Cloudrider::Generators::WebsiteGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/cloudrider/website/website_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_the_variable_filesObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/generators/cloudrider/website/website_generator.rb', line 6

def create_the_variable_files
  _protofiles.each do |protofile|
    case protofile.type.to_s
    when "copy_file"
      copy_file protofile.source, protofile.target
    when "directory"
      directory protofile.source, protofile.target
    else
      create_file protofile.full_name, protofile.content
    end
  end
end