Class: RubyRaider::Raider

Inherits:
Thor
  • Object
show all
Defined in:
lib/ruby_raider.rb

Instance Method Summary collapse

Instance Method Details

#new(project_name) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/ruby_raider.rb', line 20

def new(project_name)
  require_relative 'utilities/logo'
  RubyRaider::Logo.display
  params = options[:parameters]
  if params
    params[:name] = project_name
    parsed_hash = params.transform_keys(&:to_sym)
    merge_flags(parsed_hash)
    return InvokeGenerators.generate_framework(parsed_hash)
  end

  MenuGenerator.new(project_name).generate_choice_menu
end

#versionObject



38
39
40
# File 'lib/ruby_raider.rb', line 38

def version
  puts "The version is #{current_version}, happy testing!"
end