lib/mb/cli/sub_command/plugin.rb in motherbrain-1.2.0 vs lib/mb/cli/sub_command/plugin.rb in motherbrain-1.2.1
- old
+ new
@@ -162,18 +162,17 @@
desc("service [COMPONENT].[SERVICE] [STATE]", "Change the specified service to a new state")
define_method(:service) do |service, state|
service_options = Hash.new.merge(options).deep_symbolize_keys
service_options[:node_filter] = service_options.delete(:only)
- job = MB::Gear::DynamicService.change_service_state(
+ job = plugin_manager.async_change_service_state(
service.freeze,
plugin.freeze,
environment.freeze,
state.freeze,
true,
service_options
)
-
CliClient.new(job).display
end
method_option :component_versions,
type: :hash,