Method: Exec::ServiceComponentAdd#exec
- Defined in:
- lib/exec/service_component_add.rb
#exec ⇒ Object (private)
Execution of the command
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/exec/service_component_add.rb', line 27 def exec # @todo traiter les exceptions Color::print_log("NONE", "adding service on cluser...", @stdout) @values["host"].split(" ").each do |host| cmd = Command::AmbariServiceComponentAdd.new(@values["cluster"], @values["component"], host) cmd.exec() Color::echo_ok(@stdout) @stdout.puts("Component #{@values["component"]} has been successfully added on host #{@values["host"]} in cluster #{@values["cluster"]}.") end end |