Sha256: 9efba2fc2f4caf10a342b692a5a304adec8826ac10295c34d47b58d3f55eb94d
Contents?: true
Size: 997 Bytes
Versions: 2
Compression:
Stored size: 997 Bytes
Contents
module Roro class CLI < Thor no_commands do def rollon_as_roro if Dir['./*'].empty? raise Roro::Error.new("Oops -- Roro can't roll itself onto a Rails app if it doesn't exist. Please either change into a directory with a Rails app or generate a new one using '$ roro greenfield'.") end if ask('Configure $stdout.sync for docker?', choices).eql?('y') config_std_out_true end if ask('Configure .gitignore for roro?', choices).eql?('y') gitignore_sensitive_files end if ask('Add RoRo to your Gemfile?', choices).eql?('y') insert_roro_gem_into_gemfile end if ask('Add handsome_fencer-test to your Gemfile?', choices).eql?('y') insert_hfci_gem_into_gemfile end if ask("Backup 'config/database.yml'?").eql?('y') FileUtils.mv 'config/database.yml', "config/database.yml.backup" end copy_base_files end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roro-0.3.5 | lib/roro/cli/rollon/rollon_as_roro.rb |
roro-0.3.4 | lib/roro/cli/rollon/as_roro.rb |