Class: Suspenders::StaticGenerator

Inherits:
Generators::Base show all
Defined in:
lib/suspenders/generators/static_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root, inherited

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file

Instance Method Details

#add_high_voltageObject


5
6
7
8
# File 'lib/suspenders/generators/static_generator.rb', line 5

def add_high_voltage
  gem "high_voltage"
  Bundler.with_unbundled_env { run "bundle install" }
end

#make_placeholder_directoryObject


10
11
12
# File 'lib/suspenders/generators/static_generator.rb', line 10

def make_placeholder_directory
  empty_directory_with_keep_file "app/views/pages"
end