We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 010c0f4 commit 19515a0Copy full SHA for 19515a0
lib/puppet/util/platform.rb
@@ -21,6 +21,11 @@ def solaris?
21
end
22
module_function :solaris?
23
24
+ def linux?
25
+ RUBY_PLATFORM.include?('linux')
26
+ end
27
+ module_function :linux?
28
+
29
def default_paths
30
return [] if windows?
31
lib/puppet/util/run_mode.rb
@@ -15,6 +15,8 @@ def self.[](name)
15
@run_modes ||= {}
16
if Puppet::Util::Platform.windows?
17
@run_modes[name] ||= WindowsRunMode.new(name)
18
+ elsif Puppet::Util::Platform.linux?
19
+ @run_modes[name] ||= LinuxRunMode.new(name)
20
else
@run_modes[name] ||= UnixRunMode.new(name)
0 commit comments