lib/contrast/tasks/service.rb in contrast-agent-3.11.0 vs lib/contrast/tasks/service.rb in contrast-agent-3.12.0
- old
+ new
@@ -41,12 +41,10 @@
namespace :service do
desc 'Starts the Contrast Service'
task :start do
if Contrast::Utils::OS.running?
puts 'Contrast Service already running. No need to start'
- elsif !CONTRAST_SERVICE.enabled?
- puts 'Contrast Service disabled by configuration. Not starting.'
else
start_service
end
end
end
@@ -56,13 +54,11 @@
namespace :service do
desc 'Prints the status of the Contrast Service'
task :status do
if Contrast::Utils::OS.running?
puts 'online'
- elsif CONTRAST_SERVICE.enabled?
- puts 'offline'
else
- puts 'disabled'
+ puts 'offline'
end
end
end
end