Sha256: 715267aa02bf7625a8d8f60d35b6bff6a68b8e910e7757b0daf4371dcfe1f590

Contents?: true

Size: 828 Bytes

Versions: 13

Compression:

Stored size: 828 Bytes

Contents

# frozen_string_literal: true
module Onotole
  module Goodbye
    def show_goodbye_message
      github_check
      airbrake_check
      graphviz_check
      say_color BOLDGREEN, "Congratulations! Onotole gives you: 'Intellect+= 1'"
    end

    def github_check
      return unless user_choose? :create_github_repo
      say_color BOLDGREEN, "You can 'git push -u origin master' to your new repo
       #{app_name} or check log for errors"
    end

    def graphviz_check
      return unless user_choose?(:railroady)
      return if system('dot -? > /dev/null && neato -? > /dev/null')
      say_color YELLOW, 'Install graphviz for Railroady gem'
    end

    def airbrake_check
      return unless user_choose? :airbrake
      say_color YELLOW, "Remember to run 'rails generate airbrake' with your API key."
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
onotole-1.1.5 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.1.4 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.1.3 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.1.1 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.1.0 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.0.17 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.0.16 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.0.15 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.0.13 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.0.11 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.0.10 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.0.8 lib/onotole/add_user_gems/goodbye_message.rb
onotole-1.0.7 lib/onotole/add_user_gems/goodbye_message.rb