Class: ActionPresenter::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/action_presenter/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#build_presenters_folderObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/generators/action_presenter/install/install_generator.rb', line 10

def build_presenters_folder
  empty_directory 'app/presenters'

  case options['test-framework']
    when 'rspec'
      empty_directory 'spec/presenters'
    when 'test_unit'
      empty_directory 'test/unit/presenters'
  end
end