Class: Eastrails::Components::TwitterBootstrap

Inherits:
Base
  • Object
show all
Defined in:
lib/eastrails/components/twitter_bootstrap.rb

Instance Method Summary collapse

Methods inherited from Base

#component_installed?, #dir_html_to_haml, #do_if_installed, #file_html_to_haml, #gems, #html_to_haml, #parse_gemfile

Methods inherited from Generator

#initialize

Constructor Details

This class inherits a constructor from Eastrails::Generator

Instance Method Details

#addObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/eastrails/components/twitter_bootstrap.rb', line 4

def add
  gem 'anjlab-bootstrap-rails', '>= 2.2', :require => 'bootstrap-rails'
  run "bundle"
  inject_into_file "app/assets/stylesheets/application.css", :before => /\s\*= require_tree/ do
" *= require twitter/bootstrap\n"
  end
  append_to_file "app/assets/javascripts/application.js" do
"//= require twitter/bootstrap"
  end
end