if manifest_file not exists, discover :all
This commit is contained in:
parent
986714a013
commit
b263bfdcaf
@ -141,11 +141,16 @@ module Compass
|
|||||||
# evaluated in a Manifest instance context
|
# evaluated in a Manifest instance context
|
||||||
def parse(manifest_file)
|
def parse(manifest_file)
|
||||||
with_manifest(manifest_file) do
|
with_manifest(manifest_file) do
|
||||||
|
if File.exists?(manifest_file)
|
||||||
open(manifest_file) do |f|
|
open(manifest_file) do |f|
|
||||||
eval(f.read, instance_binding, manifest_file)
|
eval(f.read, instance_binding, manifest_file)
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
eval("discover :all", instance_binding, manifest_file)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
def instance_binding
|
def instance_binding
|
||||||
binding
|
binding
|
||||||
|
Loading…
Reference in New Issue
Block a user