Class: RGhost::GSAlone

Inherits:
Object
  • Object
show all
Defined in:
lib/rghost/gs_alone.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(params, debug = false) ⇒ GSAlone

Returns a new instance of GSAlone.



3
4
5
6
7
# File 'lib/rghost/gs_alone.rb', line 3

def initialize(params,debug=false)
  @params=params.dup
  @params[0]=" "
  @debug=debug
end

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rghost/gs_alone.rb', line 9

def run
  cmd=@params.join(" ")
  #puts File.exists?(RGhost::Config::GS[:path].to_s)
  unless File.exists?(RGhost::Config::GS[:path].to_s)
    RGhost::Config.config_platform
  end
  r=system(RGhost::Config::GS[:path]+cmd)
  
  puts RGhost::Config::GS[:path]+cmd if @debug
  #puts r
  r
end