Created
November 18, 2015 22:52
-
-
Save rivant/b4c57a5e002852fae240 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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