Skip to content

Commit

Permalink
#82 add .ruby-version file
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Ozgur OZKAN committed Sep 5, 2013
1 parent c4da36f commit be7e2aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ def add_editorconfig
copy_file 'editorconfig', '.editorconfig'
end

def add_ruby_version
copy_file 'ruby_version', '.ruby_version'
end

def replace_application_rb_file
remove_file 'config/application.rb'
copy_file 'config/application.rb', 'config/application.rb'
Expand Down
6 changes: 6 additions & 0 deletions lib/cybele/generators/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def finish_template
def customization
invoke :customize_gemfile
invoke :setup_editorconfig
invoke :setup_ruby_version
invoke :setup_database
invoke :remove_files_we_dont_need
invoke :replace_files
Expand Down Expand Up @@ -46,6 +47,11 @@ def setup_editorconfig
build :add_editorconfig
end

def setup_ruby_version
say 'Add .ruby-version file'
build :add_ruby_version
end

def remove_files_we_dont_need
say 'Remove files we don\'t need'
build :remove_readme_rdoc
Expand Down
1 change: 1 addition & 0 deletions templates/ruby_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.0-p247

1 comment on commit be7e2aa

@tayfunoziserikan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.