Class: Wrap::Bootstrap::Rails
- Inherits:
-
Object
- Object
- Wrap::Bootstrap::Rails
- Defined in:
- lib/wrap/bootstrap/rails/version.rb,
lib/wrap/bootstrap/rails.rb
Constant Summary collapse
- VERSION =
"0.0.2"- FG_RED =
31- DIRNAME_MAP =
{ "css" => "stylesheets", "js" => "javascripts", }
Instance Method Summary collapse
- #create_gem! ⇒ Object
-
#initialize(target_dir, gem_name) ⇒ Rails
constructor
A new instance of Rails.
Constructor Details
#initialize(target_dir, gem_name) ⇒ Rails
Returns a new instance of Rails.
13 14 15 16 |
# File 'lib/wrap/bootstrap/rails.rb', line 13 def initialize(target_dir, gem_name) @wrap_dir = File.(target_dir) @gem_name = gem_name end |
Instance Method Details
#create_gem! ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/wrap/bootstrap/rails.rb', line 18 def create_gem! check_gem_dir_existence check_bundler_existence system("bundle", "gem", gem_name) enginize_gem add_railtie_dependency copy_assets fix_asset_references write_readme end |