puppet 3.6.1 → 3.6.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/bin/puppet +4 -0
- data/ext/debian/puppetmaster-passenger.postinst +91 -41
- data/ext/rack/example-passenger-vhost.conf +4 -0
- data/lib/puppet/configurer/downloader.rb +3 -3
- data/lib/puppet/configurer/plugin_handler.rb +2 -1
- data/lib/puppet/defaults.rb +22 -3
- data/lib/puppet/indirector/facts/facter.rb +1 -1
- data/lib/puppet/network/http/webrick/rest.rb +9 -2
- data/lib/puppet/node/environment.rb +2 -0
- data/lib/puppet/parser/ast.rb +0 -1
- data/lib/puppet/parser/ast/collexpr.rb +1 -1
- data/lib/puppet/parser/functions.rb +26 -13
- data/lib/puppet/parser/resource.rb +11 -0
- data/lib/puppet/resource/catalog.rb +5 -2
- data/lib/puppet/settings.rb +53 -16
- data/lib/puppet/settings/array_setting.rb +17 -0
- data/lib/puppet/settings/base_setting.rb +22 -1
- data/lib/puppet/transaction.rb +1 -1
- data/lib/puppet/type/user.rb +4 -3
- data/lib/puppet/util/logging.rb +1 -0
- data/lib/puppet/util/tagging.rb +7 -6
- data/lib/puppet/version.rb +1 -1
- data/spec/integration/parser/compiler_spec.rb +28 -0
- data/spec/integration/parser/future_compiler_spec.rb +29 -0
- data/spec/integration/type/user_spec.rb +31 -0
- data/spec/unit/configurer/downloader_spec.rb +67 -35
- data/spec/unit/configurer/plugin_handler_spec.rb +1 -1
- data/spec/unit/indirector/facts/facter_spec.rb +2 -2
- data/spec/unit/node/environment_spec.rb +36 -0
- data/spec/unit/parser/functions_spec.rb +1 -4
- data/spec/unit/settings/array_setting_spec.rb +39 -0
- data/spec/unit/settings_spec.rb +69 -76
- data/spec/unit/type/user_spec.rb +13 -6
- data/spec/unit/util/logging_spec.rb +6 -0
- data/spec/unit/util/tagging_spec.rb +31 -0
- metadata +3131 -3137
- data/lib/puppet/parser/ast/tag.rb +0 -24
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'puppet/parser/ast/branch'
|
2
|
-
|
3
|
-
class Puppet::Parser::AST
|
4
|
-
# The code associated with a class. This is different from components
|
5
|
-
# in that each class is a singleton -- only one will exist for a given
|
6
|
-
# node.
|
7
|
-
class Tag < AST::Branch
|
8
|
-
@name = :class
|
9
|
-
attr_accessor :type
|
10
|
-
|
11
|
-
def evaluate(scope)
|
12
|
-
types = @type.safeevaluate(scope)
|
13
|
-
|
14
|
-
types = [types] unless types.is_a? Array
|
15
|
-
|
16
|
-
types.each do |type|
|
17
|
-
# Now set our class. We don't have to worry about checking
|
18
|
-
# whether we've been evaluated because we're not evaluating
|
19
|
-
# any code.
|
20
|
-
scope.setclass(self.object_id, type)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|