Class: SensuPluginsStackStorm::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/sensu-plugins-stackstorm/command.rb

Class Method Summary collapse

Class Method Details

.run_python(*argv) ⇒ Object



3
4
5
6
7
8
# File 'lib/sensu-plugins-stackstorm/command.rb', line 3

def self.run_python(*argv)
  bin_dir = File.expand_path(File.dirname(__FILE__)) + '/../../bin/'
  shell_script_path = File.join(bin_dir, File.basename($PROGRAM_NAME, '.rb') + '.py')
  
  exec shell_script_path, *argv
end