compass/lib/compass/commands/write_configuration.rb
Chris Eppstein b13fd43a2e Require relative to the load path instead of using the more convoluted approach of File.join(File.dirname(__FILE__), ...).
Also, don't ever muck with the load paths or rubygems without first
trying to require the library without doing so.
2009-09-02 21:45:08 -07:00

32 lines
627 B
Ruby

require 'compass/commands/project_base'
module Compass
module Commands
class WriteConfiguration < ProjectBase
include InstallerCommand
def initialize(working_path, options)
super
assert_project_directory_exists!
end
def add_project_configuration
Compass.add_project_configuration
end
def perform
installer.write_configuration_files(options[:configuration_file])
end
def installer_args
[nil, project_directory, options]
end
def explicit_config_file_must_be_readable?
false
end
end
end
end