Class: Icarus::Mod::CLI::Sync

Inherits:
SubcommandBase show all
Defined in:
lib/icarus/mod/cli/sync.rb

Overview

Sync CLI command definitions rubocop:disable Style/GlobalVars

Instance Method Summary collapse

Methods inherited from SubcommandBase

banner, subcommand_prefix

Methods inherited from Base

exit_on_failure?

Instance Method Details

#allObject



19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/icarus/mod/cli/sync.rb', line 19

def all
  puts "Running Toolinfo Sync..." if verbose?
  invoke :toolinfo

  puts "Running Tools Sync..." if verbose?
  invoke :tools

  puts "Running Modinfo Sync..." if verbose?
  invoke :modinfo

  puts "Running Mods Sync..." if verbose?
  invoke :mods
end

#modinfoObject



34
35
36
# File 'lib/icarus/mod/cli/sync.rb', line 34

def modinfo
  sync_info(:modinfo)
end

#modsObject



45
46
47
# File 'lib/icarus/mod/cli/sync.rb', line 45

def mods
  sync_list(:mods)
end

#toolinfoObject



39
40
41
# File 'lib/icarus/mod/cli/sync.rb', line 39

def toolinfo
  sync_info(:toolinfo)
end

#toolsObject



51
52
53
# File 'lib/icarus/mod/cli/sync.rb', line 51

def tools
  sync_list(:tools)
end