Class: RGhost::GSAlone
- Inherits:
-
Object
- Object
- RGhost::GSAlone
- Defined in:
- lib/rghost/gs_alone.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(params, debug = false) ⇒ GSAlone
constructor
A new instance of GSAlone.
- #run ⇒ Object
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
#run ⇒ Object
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 |