Class: ArkTools::Mods
- Inherits:
-
Thor
- Object
- Thor
- ArkTools::Mods
- Defined in:
- lib/ark_tool/commands.rb
Overview
class Generate
Instance Method Summary collapse
- #activemods(file = options[:file]) ⇒ Object
- #configs ⇒ Object
- #list ⇒ Object
- #modinstaller(file = options[:file]) ⇒ Object
Instance Method Details
#activemods(file = options[:file]) ⇒ Object
60 61 62 |
# File 'lib/ark_tool/commands.rb', line 60 def activemods(file = [:file]) puts "ActiveMods=#{ArkModList.new(file).csv}" end |
#configs ⇒ Object
68 69 70 71 72 |
# File 'lib/ark_tool/commands.rb', line 68 def configs invoke :activemods puts invoke :modinstaller end |
#list ⇒ Object
78 79 80 |
# File 'lib/ark_tool/commands.rb', line 78 def list ArkModList.new([:file]).each { |mod| printf "%-25s %s\n", mod.description, mod.id } end |
#modinstaller(file = options[:file]) ⇒ Object
86 87 88 89 |
# File 'lib/ark_tool/commands.rb', line 86 def modinstaller(file = [:file]) puts "[ModInstaller]" ArkModList.new(file).each { |mod| printf "ModIds=%s ; %s\n", mod.id, mod.description } end |