Skip to content

Commit

Permalink
Merged in feature/fix_pronto_thor_problem (pull request #45)
Browse files Browse the repository at this point in the history
Refactored app build method for pronto

Approved-by: İsmail Akbudak <[email protected]>
  • Loading branch information
Kemal AKIN authored and İsmail Akbudak committed Feb 25, 2019
2 parents 4dfccd1 + 74d395b commit 77c3dc5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
7 changes: 7 additions & 0 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,12 @@ def git_and_git_flow_commands
git add: '.'
git commit: '-m "Project initialized"'
end

def add_pronto_to_gemfile
# Add gems
append_file('Gemfile', template_content('pronto/pronto_Gemfile.erb'))
bundle_command 'update'
bundle_command 'install'
end
end
end
5 changes: 5 additions & 0 deletions lib/cybele/generators/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ def docker_development_env
build :setup_docker_development_env
end

def setup_pronto
say 'Pronto is setup', :green
build :add_pronto_to_gemfile
end

def setup_git_and_git_flow
say 'Initialize git and git flow'
build :git_and_git_flow_commands
Expand Down
12 changes: 0 additions & 12 deletions templates/Gemfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@ group :development, :test do
gem 'colorize', '~> 0.8.1'
end

# Pronto runners
group :development do
gem 'pronto', '~> 0.9.5'
gem 'pronto-erb_lint', require: false
gem 'pronto-brakeman', require: false
gem 'pronto-fasterer', require: false
gem 'pronto-flay', require: false
gem 'pronto-haml', require: false
gem 'pronto-poper', require: false
gem 'pronto-rubocop', require: false
end

# A set of common locale data and translations to internationalize and/or localize your Rails applications.
gem 'rails-i18n', '~> 5.1'

Expand Down
12 changes: 12 additions & 0 deletions templates/pronto/pronto_Gemfile.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Pronto runners
group :development do
gem 'pronto', '~> 0.9.5'
gem 'pronto-erb_lint', require: false
gem 'pronto-brakeman', require: false
gem 'pronto-fasterer', require: false
gem 'pronto-flay', require: false
gem 'pronto-haml', require: false
gem 'pronto-poper', require: false
gem 'pronto-rubocop', require: false
end

0 comments on commit 77c3dc5

Please sign in to comment.