diff --git a/lib/boxen/service.rb b/lib/boxen/service.rb index f48633c..05a091f 100644 --- a/lib/boxen/service.rb +++ b/lib/boxen/service.rb @@ -30,7 +30,7 @@ module Boxen private def location - "#{self.class.location}/com.boxen.#{name}.plist" + "#{self.class.location}/dev.#{name}.plist" end def self.location @@ -38,11 +38,11 @@ module Boxen end def self.files - Dir["#{location}/com.boxen.*.plist"] + Dir["#{location}/dev.*.plist"] end def self.human_name(service) - service.match(/com\.boxen\.(.+)\.plist$/)[1] + service.match(/dev\.(.+)\.plist$/)[1] end end end diff --git a/test/boxen_service_test.rb b/test/boxen_service_test.rb index bc18c79..5d35b69 100644 --- a/test/boxen_service_test.rb +++ b/test/boxen_service_test.rb @@ -3,9 +3,9 @@ require "boxen/service" class BoxenServiceTest < Boxen::Test def test_list - Dir.expects(:[]).with("/Library/LaunchDaemons/com.boxen.*.plist").returns([ - "/Library/LaunchDaemons/com.boxen.test.plist", - "/Library/LaunchDaemons/com.boxen.other.plist" + Dir.expects(:[]).with("/Library/LaunchDaemons/dev.*.plist").returns([ + "/Library/LaunchDaemons/dev.test.plist", + "/Library/LaunchDaemons/dev.other.plist" ]) services = Boxen::Service.list @@ -15,14 +15,14 @@ class BoxenServiceTest < Boxen::Test def test_enable service = Boxen::Service.new('blip') Boxen::Util.expects(:sudo).with('/bin/launchctl', 'load', '-w', - '/Library/LaunchDaemons/com.boxen.blip.plist') + '/Library/LaunchDaemons/dev.blip.plist') service.enable end def test_disable service = Boxen::Service.new('thing') Boxen::Util.expects(:sudo).with('/bin/launchctl', 'unload', '-w', - '/Library/LaunchDaemons/com.boxen.thing.plist') + '/Library/LaunchDaemons/dev.thing.plist') service.disable end