From 47fc1d74a2c83ed5a540f6815d169de5ac93485c Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Tue, 4 Mar 2014 15:35:09 +0000 Subject: [PATCH] prefix {start,stop}_command with "crm_" to make more explicit and consistent with crm_configure_command. --- libraries/chef/mixin/pacemaker/runnable_resource.rb | 4 ++-- libraries/pacemaker/resource.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/chef/mixin/pacemaker/runnable_resource.rb b/libraries/chef/mixin/pacemaker/runnable_resource.rb index 8297bcf..43a77b6 100644 --- a/libraries/chef/mixin/pacemaker/runnable_resource.rb +++ b/libraries/chef/mixin/pacemaker/runnable_resource.rb @@ -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) diff --git a/libraries/pacemaker/resource.rb b/libraries/pacemaker/resource.rb index e953316..c410e73 100644 --- a/libraries/pacemaker/resource.rb +++ b/libraries/pacemaker/resource.rb @@ -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