lib/teuton/case_manager/case/builtin/service.rb in teuton-2.3.6 vs lib/teuton/case_manager/case/builtin/service.rb in teuton-2.3.7

- old
+ new

@@ -1,6 +1,5 @@ - class Service def initialize(teuton_host, param) @teuton_host = teuton_host @parent = teuton_host.parent @host = teuton_host.host @@ -8,26 +7,26 @@ end def is_running? @parent.target("Service #{@param} is running?") @parent.run "systemctl status #{@param}", on: @host - @parent.expect_one ['Active:', 'running' ] + @parent.expect_one ["Active:", "running"] end def is_inactive? @parent.target("Service #{@param} is inactive?") @parent.run "systemctl status #{@param}", on: @host - @parent.expect_one ['Active:', 'inactive' ] + @parent.expect_one ["Active:", "inactive"] end def is_enable? @parent.target("Service #{@param} is enable?") @parent.run "systemctl status #{@param}", on: @host - @parent.expect_one ['Loaded:', 'enable' ] + @parent.expect_one ["Loaded:", "enable"] end def is_disable? @parent.target("Service #{@param} is disable?") @parent.run "systemctl status #{@param}", on: @host - @parent.expect_one ['Loaded:', 'disable' ] + @parent.expect_one ["Loaded:", "disable"] end end