Class: SensuPluginsStackStorm::Command
- Inherits:
-
Object
- Object
- SensuPluginsStackStorm::Command
- 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.(File.dirname(__FILE__)) + '/../../bin/' shell_script_path = File.join(bin_dir, File.basename($PROGRAM_NAME, '.rb') + '.py') exec shell_script_path, *argv end |