Class: PhilColumns::Command::Generate::Seed

Inherits:
PhilColumns::Command::Generator show all
Defined in:
lib/phil_columns/command/generate/seed.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Output

#confirm, included, #say, #say_error, #say_ok, #say_skipping, #write

Constructor Details

This class inherits a constructor from PhilColumns::Command::Base

Instance Method Details

#executeObject



10
11
12
13
14
# 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