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



13
14
15
# File 'lib/ruby_raider.rb', line 13

def new(project_name)
  MenuGenerator.new(project_name).generate_choice_menu
end

#open ⇒ Object



20
21
22
# File 'lib/ruby_raider.rb', line 20

def open
  InstallationScreen.new.launch
end

#version ⇒ Object



25
26
27
28
29
# File 'lib/ruby_raider.rb', line 25

def version
  spec = Gem::Specification.find_by_name('ruby_raider')
  version = spec.version
  puts "The Ruby Raider version is #{version}, Happy testing!"
end