Skip to content

Instantly share code, notes, and snippets.

@rivant
Created November 18, 2015 22:52
Show Gist options
  • Save rivant/b4c57a5e002852fae240 to your computer and use it in GitHub Desktop.
Save rivant/b4c57a5e002852fae240 to your computer and use it in GitHub Desktop.
namespace :labco do
desc 'Start Interface'
task :start do
puts `ruby -e "load 'interfaces/labco/main.rb';
HL7Engine::Interfaces::LabCo::Main.new(4481).run" start`
end
desc 'Stop Interface'
task :stop do
puts `ruby -e "load 'interfaces/labco/main.rb';
HL7Engine::Interfaces::LabCo::Main.new(4481).run" stop`
end
desc 'Check status of Interface'
task :status do
puts `ruby -e "load 'interfaces/labco/main.rb';
HL7Engine::Interfaces::LabCo::Main.new(4481).run" status`
end
desc 'Restart Interface'
task :restart do
puts `ruby -e "load 'interfaces/labco/main.rb';
HL7Engine::Interfaces::LabCo::Main.new(4481).run" restart`
end
desc 'Run interface in foreground for testing'
task :run do
puts `ruby -e "load 'interfaces/labco/main.rb';
HL7Engine::Interfaces::LabCo::Main.new(4481).run" run`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment