Skip to content

Commit

Permalink
#93 capistrano recipes added
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdilek committed Oct 30, 2013
1 parent 383d48f commit 5080392
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
*.gem
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
cybele (0.10.1)
cybele (1.0.0)
bundler (~> 1.3)
rails (~> 4.0.0)

Expand Down
9 changes: 9 additions & 0 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@ def replace_simple_form_wrapper
copy_file 'config/initializers/simple_form_bootstrap.rb', 'config/initializers/simple_form_bootstrap.rb'
end

def setup_capistrano
run 'capify .'
end

def setup_recipes
run 'rm config/deploy.rb'
generate 'recipes_matic:install'
end

private

def action_mailer_host(rails_env, host)
Expand Down
10 changes: 10 additions & 0 deletions lib/cybele/generators/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ def setup_exception_notification_to_environments
build :add_exception_notification_to_environments
end

def install_capistrano
build :setup_capistrano
end

def setup_recipes
build :setup_recipes
end



protected

def get_builder_class
Expand Down
4 changes: 4 additions & 0 deletions templates/cybele_Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ gem 'annotate', '>=2.5.0'
gem 'recipient_interceptor', '~> 0.1.2'
gem 'rails-i18n', '~> 4.0.0'
gem 'ransack'
gem 'capistrano', '~> 2.15.5'
gem 'capistrano-ext', '~> 1.2.1'
gem 'unicorn', '~> 4.6.3'
gem 'recipes_matic'

# gem 'rails-observers'

Expand Down

0 comments on commit 5080392

Please sign in to comment.