Class: Pult::Executor::Screener

Inherits:
Object
  • Object
show all
Defined in:
lib/init/struct.rb,
lib/pult/executor/screener.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(screen, env, params, command) ⇒ Screener

Returns a new instance of Screener.



11
12
13
14
15
16
# File 'lib/pult/executor/screener.rb', line 11

def initialize screen, env, params, command
  @screen   = screen
  @env      = env
  @params   = params
  @command  = command
end

Instance Attribute Details

#runnerObject (readonly)

Returns the value of attribute runner.



3
4
5
# File 'lib/pult/executor/screener.rb', line 3

def runner
  @runner
end

Class Method Details

.run!(screen:, env: {}, params: {}, command: '') ⇒ Object



5
6
7
8
9
# File 'lib/pult/executor/screener.rb', line 5

def self.run! screen:, env:{}, params:{}, command:''
  screener = new(screen, env, params, command)
  screener.run!
  screener.runner
end

Instance Method Details

#run!Object



18
19
20
# File 'lib/pult/executor/screener.rb', line 18

def run!
  execute!
end