class PhilColumns::Command::Generate::Seed

Public Instance Methods

execute() click to toggle source
# File lib/phil_columns/command/generate/seed.rb, line 10
def execute
  write "Generating seed #{seed_filepath} ... "
  erb_template_to_file( template_filepath, seed_filepath, class_name: seed_class_name )
  say_ok
end

Protected Instance Methods

template_filepath() click to toggle source
# File lib/phil_columns/command/generate/seed.rb, line 18
def template_filepath
  File.expand_path(  '../../../../../templates/seed_class.erb', __FILE__ )
end