lib/nanoc.rb in nanoc-3.6.6 vs lib/nanoc.rb in nanoc-3.6.7
- old
+ new
@@ -11,9 +11,14 @@
res << "nanoc #{Nanoc::VERSION} © 2007-2013 Denis Defreyne.\n"
res << "Running #{engine} #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) on #{RUBY_PLATFORM} #{gem_info}.\n"
res
end
+ # @return [Boolean] True if the current platform is Windows,
+ def self.on_windows?
+ !!(RUBY_PLATFORM =~ /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/i)
+ end
+
end
Nanoc3 = Nanoc
# Load general requirements