Class: Balmora::Command::Commands

Inherits:
Balmora::Command show all
Defined in:
lib/balmora/command/commands.rb

Instance Method Summary collapse

Methods inherited from Balmora::Command

#_execute, #execute, #init, #initialize, #option

Constructor Details

This class inherits a constructor from Balmora::Command

Instance Method Details

#_installedObject



17
18
19
# File 'lib/balmora/command/commands.rb', line 17

def _installed()
  return @shell.run!(['pacman', '-Q'], verbose: false).split("\n")
end

#optionsObject



3
4
5
# File 'lib/balmora/command/commands.rb', line 3

def options()
  return super().concat([:commands])
end

#runObject



13
14
15
# File 'lib/balmora/command/commands.rb', line 13

def run()
  @balmora.run_commands(@state, @commands)
end

#verifyObject



7
8
9
10
11
# File 'lib/balmora/command/commands.rb', line 7

def verify()
  if @commands.nil?()
    raise Error.new('"commands" should be set')
  end
end