Sha256: 95a1067ae27ad016c9ba49e41d1ba767bb3f900c0010d947c45e4b1eb636b9be

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

<% if options[:wrapper] %>require 'systemu'
<% end %>

module <%= constant_name %>
<% if options[:wrapper] %>
  class Wrapper
    def run
      command = "some_application arguments"
      status, stdout, stderr = systemu command, 0 => 'dummy stdin'
      if status.exitstatus != 0
         $stderr.puts "Failed to run wrapping command correctly, as non-zero exit status "+
           "#{status.exitstatus} detected. Command run was `#{command}'"
      else
        # All good. Now to something useful with the stdout..
      end
    end
  end
<% end %>
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bio-gem-1.3.6 lib/bio-gem/templates/lib/plugin.rb
bio-gem-1.3.5 lib/bio-gem/templates/lib/plugin.rb