Class: Suspenders::StylesheetBaseGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/suspenders/generators/stylesheet_base_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_css_configObject



13
14
15
16
17
18
19
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 13

def add_css_config
  copy_file(
    "application.sass",
    "app/assets/stylesheets/application.sass",
    force: true,
  )
end

#add_stylesheet_gemsObject



9
10
11
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 9

def add_stylesheet_gems
  gem "bourbon", "5.0.0.beta.6"
end

#remove_prior_configObject



21
22
23
# File 'lib/suspenders/generators/stylesheet_base_generator.rb', line 21

def remove_prior_config
  remove_file "app/assets/stylesheets/application.css"
end