lib/pelusa/cli.rb in pelusa-0.0.2 vs lib/pelusa/cli.rb in pelusa-0.1.0
- old
+ new
@@ -19,9 +19,11 @@
def files
if glob = @args.detect { |arg| arg =~ /\*/ }
return Dir[glob]
end
- @args.select { |arg| arg =~ /\.rb/ }
+ _files = @args.select { |arg| arg =~ /\.rb/ }
+ _files = Dir[Pelusa.configuration.sources] if _files.empty?
+ _files
end
end
end