-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Onur Özgür ÖZKAN
committed
May 9, 2013
1 parent
29ddfb9
commit 593304f
Showing
3 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
module Cybele #:nodoc:# | ||
|
||
# Public: This allows you to override entire operations, like the creation of the | ||
# Gemfile, README, or JavaScript files, without needing to know exactly | ||
# Gemfile_new, README, or JavaScript files, without needing to know exactly | ||
# what those operations do so you can create another template action. | ||
class AppBuilder < Rails::AppBuilder | ||
|
||
# Internal: Add readme.md file | ||
def add_readme_md | ||
# Internal: Overwrite super class readme | ||
def readme | ||
template 'README.md.erb', 'README.md', :force => true | ||
end | ||
|
||
# Internal: Overwrite superclass gemfile | ||
def gemfile | ||
template 'Gemfile_new', 'Gemfile', :force => true | ||
end | ||
|
||
# Remove: Remove public index file | ||
def remove_public_index | ||
say 'public' | ||
remove_file 'public/index.html' | ||
end | ||
|
||
# Internal: remove rdoc.md file | ||
# Internal: Remove README.rdoc file | ||
def remove_readme_rdoc | ||
say 'readme' | ||
remove_file 'README.rdoc' | ||
end | ||
|
||
# Internal: Replace gemfile | ||
def replace_gemfile | ||
remove_file 'Gemfile_new' | ||
copy_file 'Gemfile_new', 'Gemfile_new' | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rails', '~> 4.0.0.rc1' | ||
gem 'pg' | ||
gem 'sass-rails', '~> 4.0.0.rc1' | ||
gem 'uglifier', '>= 1.3.0' | ||
gem 'coffee-rails', '~> 4.0.0' | ||
gem 'jquery-rails' | ||
gem 'turbolinks' | ||
|
||
group :doc do | ||
gem 'sdoc', require: false | ||
end |