prefix {start,stop}_command with "crm_"

to make more explicit and consistent with crm_configure_command.
This commit is contained in:
Adam Spiers
2014-03-04 15:35:09 +00:00
parent d061d3868d
commit 47fc1d74a2
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ class Chef
raise "Cannot start non-existent #{cib_object_class.description} '#{name}'"
end
return if @current_cib_object.running?
execute @current_cib_object.start_command do
execute @current_cib_object.crm_start_command do
action :nothing
end.run_action(:run)
new_resource.updated_by_last_action(true)
@@ -28,7 +28,7 @@ class Chef
raise "Cannot stop non-existent #{cib_object_class.description} '#{name}'"
end
return unless @current_cib_object.running?
execute @current_cib_object.stop_command do
execute @current_cib_object.crm_stop_command do
action :nothing
end.run_action(:run)
new_resource.updated_by_last_action(true)

View File

@@ -16,11 +16,11 @@ module Pacemaker
!! cmd.stdout.include?("resource #{name} is running")
end
def start_command
def crm_start_command
"crm resource start '#{name}'"
end
def stop_command
def crm_stop_command
"crm resource stop '#{name}'"
end