A little less noise during installation.
This commit is contained in:
parent
4ba6e57106
commit
a154d2e5cf
@ -18,7 +18,7 @@ module Compass
|
|||||||
def directory(dir, options = nil)
|
def directory(dir, options = nil)
|
||||||
options ||= self.options if self.respond_to?(:options)
|
options ||= self.options if self.respond_to?(:options)
|
||||||
if File.exists?(dir) && File.directory?(dir)
|
if File.exists?(dir) && File.directory?(dir)
|
||||||
logger.record :exists, basename(dir) unless options[:quiet]
|
# logger.record :exists, basename(dir) unless options[:quiet]
|
||||||
elsif File.exists?(dir)
|
elsif File.exists?(dir)
|
||||||
msg = "#{basename(dir)} already exists and is not a directory."
|
msg = "#{basename(dir)} already exists and is not a directory."
|
||||||
raise Compass::FilesystemConflict.new(msg)
|
raise Compass::FilesystemConflict.new(msg)
|
||||||
|
@ -98,7 +98,6 @@ module Compass
|
|||||||
|
|
||||||
# Compile one Sass file
|
# Compile one Sass file
|
||||||
def compile(sass_filename, css_filename)
|
def compile(sass_filename, css_filename)
|
||||||
logger.record :compile, basename(sass_filename) unless options[:quiet]
|
|
||||||
css_content = logger.red do
|
css_content = logger.red do
|
||||||
engine(sass_filename, css_filename).render
|
engine(sass_filename, css_filename).render
|
||||||
end
|
end
|
||||||
|
@ -84,7 +84,7 @@ module Compass
|
|||||||
to = targetize(install_location_for_stylesheet(to, options))
|
to = targetize(install_location_for_stylesheet(to, options))
|
||||||
contents = File.new(from).read
|
contents = File.new(from).read
|
||||||
if preferred_syntax.to_s != from[-4..-1]
|
if preferred_syntax.to_s != from[-4..-1]
|
||||||
logger.record :convert, basename(from)
|
# logger.record :convert, basename(from)
|
||||||
tree = Sass::Engine.new(contents, Compass.sass_engine_options.merge(:syntax => from[-4..-1].intern)).to_tree
|
tree = Sass::Engine.new(contents, Compass.sass_engine_options.merge(:syntax => from[-4..-1].intern)).to_tree
|
||||||
contents = tree.send("to_#{preferred_syntax}")
|
contents = tree.send("to_#{preferred_syntax}")
|
||||||
to[-4..-1] = preferred_syntax.to_s
|
to[-4..-1] = preferred_syntax.to_s
|
||||||
|
Loading…
Reference in New Issue
Block a user