~cbehrens/openstack-guest-agents/lp764221

« back to all changes in this revision

Viewing changes to src/xenserver/windows/src/Rackspace.Cloud.Server.Agent/Commands/Features.cs

  • Committer: Antony Messerli
  • Date: 2011-03-02 21:56:51 UTC
  • Revision ID: amesserl@rackspace.com-20110302215651-0clqh49spumg13c6
Initial commit Rackspace Windows Guest Agent

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
using Rackspace.Cloud.Server.Agent.Configuration;
 
4
using Rackspace.Cloud.Server.Agent.Interfaces;
 
5
 
 
6
namespace Rackspace.Cloud.Server.Agent.Commands
 
7
{
 
8
    public class Features : IExecutableCommand
 
9
    {
 
10
        public ExecutableResult Execute(string value)
 
11
        {
 
12
            var enumValues = "";
 
13
            foreach (var val in Enum.GetValues(typeof(Utilities.Commands)))
 
14
            {
 
15
                if (val.ToString() == "features") continue;
 
16
                enumValues += val + ",";
 
17
            }
 
18
            enumValues = enumValues.Substring(0, enumValues.Length - 1);
 
19
            return new ExecutableResult { Output = new List<string> { enumValues } };
 
20
        }
 
21
    }
 
22
}
 
 
b'\\ No newline at end of file'