builder/extra/tools/ruby-tpm/configure/configure_command.rb
def command_hosts(hosts = nil)
    if hosts != nil
      if allow_command_hosts?() == false
        raise "Unable to specify --host for the #{self.class.get_command_name} command"
      end
      if hosts == ""
        raise "You have specified an empty value for the --hosts argument"
      end
      
      @command_hosts = []
      @command_aliases = []
      hosts.split(",").each{
        |v|
        if v == ""
          next
        end
        
        # Store the original hostname and a normalized version
        @command_hosts << v
        @command_aliases << to_identifier(v)
      }
    end
    
    @command_hosts
  end
# Limit the command to certain hosts
Limit the command to certain hosts
Limit the command to certain hosts
def command_hosts(hosts = nil)
    if hosts != nil
      if allow_command_hosts?() == false
        raise "Unable to specify --host for the #{self.class.get_command_name} command"
      end
      if hosts == ""
        raise "You have specified an empty value for the --hosts argument"
      end
      @command_hosts = []
      @command_aliases = []
      hosts.split(",").each{
        |v|
        if v == ""
          next
        end
        @command_hosts << v
        @command_aliases << to_identifier(v)
      }
    end
    @command_hosts
  end
def command_hosts ( hosts = nil ) if hosts != nil if allow_command_hosts? ( ) == false raise "Unable to specify --host for the #{self.class.get_command_name} command" end if hosts == "" raise "You have specified an empty value for the --hosts argument" end @command_hosts = [ ] @command_aliases = [ ] hosts . split ( "," ) . each { | v | if v == "" next end @command_hosts << v @command_aliases << to_identifier ( v ) } end @command_hosts end
Limit the command to certain hosts
Limit the command to certain hosts
# Store the original hostname and a normalized version
hosts