lib/puppet/provider/compellent_cluster_server/compellent_cluster_server.rb
# Command line for getting all or specific server information
#
# @param server_name [String] name of server, or cluster server
# @return [String]
Command line for getting all or specific server information
Command line for getting all or specific server information
def show_server_commandline(server_name=nil)
    command = "server show"
    if server_name
      command.concat(" -name '%s'" % [server_name])
    end
    command.concat(" -folder '%s'" % [@resource[:folder]]) unless @resource[:folder].strip.empty?
    command
  end
def show_server_commandline ( server_name = nil ) command = "server show" if server_name command . concat ( " -name '%s'" % [ server_name ] ) end command . concat ( " -folder '%s'" % [ @resource [ :folder ] ] ) unless @resource [ :folder ] . strip . empty? command end
Command line for getting all or specific server information
Command line for getting all or specific server information
None
String
server_name
name of server, or cluster server
name of server or cluster server