Sha256: f61a2f8deb35aaea7ab703df5fe1f5517e0a56fdbe2f8fc959f5370a55beefce
Contents?: true
Size: 1.69 KB
Versions: 6
Compression:
Stored size: 1.69 KB
Contents
require 'mj/visitor' module BuildTool; module Cfg; # # # class Node < MJ::Visitable attr_accessor :values def value values #raise StandardError, "1 Value expected.#{values.length} values found!." end def initialize(values = nil) @values = values end end # class Node %w[ ApplyPatches ArchiveDeclaration BuildSystemDeclaration BuildSystemOption BuildSystemInplace EnvironmentDeclaration EnvironmentVariable EnableFeature DisableFeature EnableModule DisableModule Feature ShortDescription LongDescription GitSvnDeclaration GitDeclaration GitRemotePath GitServer GitSvnExternal Include LogDirectory ModuleBuildPrefix ModuleDeclaration ModuleInstallPrefix ModuleLocalPath ModuleRemotePath ModuleTemplate RemoteDeclaration RepositoryDeclaration RepositoryPath RepositoryUser ServerDeclaration ServerHost ServerPath ServerProtocol SshKeyDeclaration SshKeyFile SvnDeclaration SvnCheckoutOnly UseBuildSystem UseEnvironment UseRepository UseServer UseSshKey UseVcs ].each do |type| eval "class #{type}Node < Node; end" end class NodeList < Node end %w[ ConfigurationFile ServerStatement ].each do |type| eval "class #{type}List < NodeList; end" end end; end; # module BuildTool::Cfg
Version data entries
6 entries across 6 versions & 1 rubygems