Class: Kadim::HostGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/kadim/host/host_generator.rb

Constant Summary collapse

BASE_DIRS =
[
  "app/assets/javascripts/kadim",
  "app/assets/stylesheets/kadim",
  "app/controllers/kadim",
  "app/helpers/kadim",
  "app/views/kadim",
  "app/views/layouts/kadim"
]

Instance Method Summary collapse

Instance Method Details

#copy_base_filesObject



16
17
18
19
# File 'lib/generators/kadim/host/host_generator.rb', line 16

def copy_base_files
  self.class.source_root File.expand_path("../../../..", __dir__)
  BASE_DIRS.each { |dirname| directory dirname }
end