AppHarbor.Commands.HostnameCommand.InnerExecute C# (CSharp) Method

InnerExecute() protected method

protected InnerExecute ( string arguments ) : void
arguments string
return void
        protected override void InnerExecute(string[] arguments)
        {
            var hostnames = _appharborClient.GetHostnames(ApplicationId);

            if (!hostnames.Any())
            {
                _writer.WriteLine("No hostnames are associated with the application.");
            }

            foreach (var hostname in hostnames)
            {
                var output = hostname.Value;
                output += hostname.Canonical ? " (canonical)" : "";

                _writer.WriteLine(output);
            }
        }