Class: Balmora::Command::Commands
Instance Method Summary
collapse
#_execute, #execute, #init, #initialize, #option
Instance Method Details
#_installed ⇒ Object
17
18
19
|
# File 'lib/balmora/command/commands.rb', line 17
def _installed()
return @shell.run!(['pacman', '-Q'], verbose: false).split("\n")
end
|
#options ⇒ Object
3
4
5
|
# File 'lib/balmora/command/commands.rb', line 3
def options()
return super().concat([:commands])
end
|
#run ⇒ Object
13
14
15
|
# File 'lib/balmora/command/commands.rb', line 13
def run()
@balmora.run_commands(@state, @commands)
end
|
#verify ⇒ Object
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
|