Module: CommandWrap::Config::Xvfb

Defined in:
lib/command_wrap/config/xvfb.rb

Class Method Summary collapse

Class Method Details

.command(subcommand) ⇒ Object



21
22
23
# File 'lib/command_wrap/config/xvfb.rb', line 21

def self.command (subcommand)
    "#{executable} #{params} #{subcommand}"
end

.executableObject



5
6
7
# File 'lib/command_wrap/config/xvfb.rb', line 5

def self.executable
    @executable ||= "xvfb-run"
end

.executable=(executeable) ⇒ Object



9
10
11
# File 'lib/command_wrap/config/xvfb.rb', line 9

def self.executable= (executeable)
    @executable = executeable
end

.paramsObject



13
14
15
# File 'lib/command_wrap/config/xvfb.rb', line 13

def self.params
    @params ||= '--server-args="-screen 0, 1024x768x24"'
end

.params=(params) ⇒ Object



17
18
19
# File 'lib/command_wrap/config/xvfb.rb', line 17

def self.params= (params)
    @params = params
end