Method: Exec::ServiceConfApply#exec

Defined in:
lib/exec/service_conf_apply.rb

#execObject

The execution of the command.

Author:

  • mbretaud



32
33
34
35
36
37
38
39
40
41
# File 'lib/exec/service_conf_apply.rb', line 32

def exec
  Color::print_log("NONE", "Applying configuration to the cluster '#{@values["cluster"]}'", @stdout)

  if !@values["cluster"].nil? && !@values["type"].nil? && !@values["tag"].nil?
    apply_configuration(@values["cluster"], @values["type"], @values["tag"])
    Color::echo_ok(@stdout)
  else
    raise ArgumentError.new("Arguments can't be nil!")
  end
end