Class: ArkTools::Mods

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

Overview

class Generate

Instance Method Summary collapse

Instance Method Details

#activemods(file = options[:file]) ⇒ Object



60
61
62
# File 'lib/ark_tool/commands.rb', line 60

def activemods(file = options[:file])
  puts "ActiveMods=#{ArkModList.new(file).csv}"
end

#configsObject



68
69
70
71
72
# File 'lib/ark_tool/commands.rb', line 68

def configs
  invoke :activemods
  puts
  invoke :modinstaller
end

#listObject



78
79
80
# File 'lib/ark_tool/commands.rb', line 78

def list
  ArkModList.new(options[: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 = options[:file])
  puts "[ModInstaller]"
  ArkModList.new(file).each { |mod| printf "ModIds=%s ; %s\n", mod.id, mod.description }
end