compass/lib/compass/commands/print_version.rb

23 lines
592 B
Ruby
Raw Normal View History

module Compass
module Commands
class PrintVersion
attr_accessor :options
def initialize(working_path, options)
self.options = options
end
def execute
if options[:quiet]
# The quiet option may make scripting easier
puts ::Compass.version[:string]
else
lines = []
lines << "Compass #{::Compass.version[:string]}"
2009-04-07 07:13:16 +00:00
lines << "Copyright (c) 2008-2009 Chris Eppstein"
lines << "Released under the MIT License."
puts lines.join("\n")
end
end
end
end
end