b13fd43a2e
Also, don't ever muck with the load paths or rubygems without first trying to require the library without doing so.
32 lines
627 B
Ruby
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 |