class Ahoy::InitGenerator

Public Instance Methods

init() click to toggle source
# File lib/generators/ahoy/init_generator.rb, line 9
def init
  Ahoy::VariableStore.mkdir_tmp
  section_divider
  masthead
  section_divider
  generate 'ahoy:deployment'
  section_divider
  generate 'ahoy:vagrant'
  section_divider
  puts 'Finalizing...'
  section_divider
  puts 'Finished!'
  Ahoy::VariableStore.rm_tmp
end

Private Instance Methods

masthead() click to toggle source
# File lib/generators/ahoy/init_generator.rb, line 31
def masthead
  puts '          ___           ___           ___            ___      '
  puts '         /  /\         /__/\         /  /\          /__/|     '
  puts '        /  /++\        \  \+\       /  /++\        |  |+|     '
  puts '       /  /+/\+\        \__\+\     /  /+/\+\       |  |+|     ' + '      Ahoy!'
  puts '      /  /+/~/++\   ___ /  /++\   /  /+/  \+\      |  |+|     ' + '      Get your Rails app deployed'
  puts '     /__/+/ /+/\+\ /__/\  /+/\+\ /__/+/ \__\+\  ___|__|+|     '
  puts '     \  \+\/+/__\/ \  \+\/+/__\/ \  \+\ /  /+/ /__/+++++\     ' + "      v.#{Ahoy::VERSION}"
  puts '      \  \++/       \  \++/       \  \+\  /+/  \__\~~~~++\    '
  puts '       \  \+\        \  \+\        \  \+\/+/         \  \+\   '
  puts '        \  \+\        \  \+\        \  \++/           \  \+\  '
  puts '         \__\/         \__\/         \__\/             \__\/  '
  puts
end
section_divider() click to toggle source
# File lib/generators/ahoy/init_generator.rb, line 27
def section_divider
  puts '=' * 100
end