Add a command to list available frameworks.
This commit is contained in:
parent
b021b77894
commit
e93051d239
16
lib/compass/commands/list_frameworks.rb
Normal file
16
lib/compass/commands/list_frameworks.rb
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
module Compass
|
||||||
|
module Commands
|
||||||
|
class ListFrameworks
|
||||||
|
attr_accessor :options
|
||||||
|
def initialize(working_directory, options)
|
||||||
|
self.options = options
|
||||||
|
end
|
||||||
|
|
||||||
|
def perform
|
||||||
|
Compass::Frameworks::ALL.each do |framework|
|
||||||
|
puts framework.name
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -108,6 +108,10 @@ END
|
|||||||
self.options[:framework] = framework
|
self.options[:framework] = framework
|
||||||
end
|
end
|
||||||
|
|
||||||
|
opts.on('--list-frameworks', "List compass frameworks available to use.") do
|
||||||
|
self.options[:command] = :list_frameworks
|
||||||
|
end
|
||||||
|
|
||||||
opts.on('-e ENV', '--environment ENV', [:development, :production], 'Use sensible defaults for your current environment: development, production (default)') do |env|
|
opts.on('-e ENV', '--environment ENV', [:development, :production], 'Use sensible defaults for your current environment: development, production (default)') do |env|
|
||||||
self.options[:environment] = env
|
self.options[:environment] = env
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user