Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make the project_path variable setable as an option on CLI. #1155

Merged
merged 1 commit into from

2 participants

@androa

This makes Compass a lot easier to use in automated deployment processes.

@scottdavis
Owner

why app-dir and not project-path?

@androa

Yeah, I thougth to use project-path as well, but that would be inconsistent of the similar --app = project_type option. I see now that I've messed up something in my branch after sending the PR, I can try to clean that up when I'm done snowboarding.

@androa

So, there I cleaned up the git history.

@scottdavis scottdavis merged commit a6df610 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/compass/exec/project_options_parser.rb
View
6 lib/compass/exec/project_options_parser.rb
@@ -20,6 +20,10 @@ def set_project_options(opts)
self.options[:project_type] = project_type.to_sym
end
+ opts.on('--app-dir PATH', 'The base directory for your application.') do |project_path|
+ self.options[:project_path] = project_path
+ end
+
opts.on('--sass-dir SRC_DIR', "The source directory where you keep your sass stylesheets.") do |sass_dir|
set_dir_or_path(:sass, sass_dir)
end
@@ -35,7 +39,7 @@ def set_project_options(opts)
opts.on('--javascripts-dir JS_DIR', "The directory where you keep your javascripts.") do |javascripts_dir|
set_dir_or_path(:javascripts, javascripts_dir)
end
-
+
opts.on('--fonts-dir FONTS_DIR', "The directory where you keep your fonts.") do |fonts_dir|
set_dir_or_path(:fonts, fonts_dir)
end
Something went wrong with that request. Please try again.