lib/fakes3/cli.rb in fakes3-0.1.1 vs lib/fakes3/cli.rb in fakes3-0.1.2
- old
+ new
@@ -13,9 +13,10 @@
method_option :limit, :aliases => '-l', :type => :string, :desc => 'Rate limit for serving (ie. 50K, 1.0M)'
def server
store = nil
if options[:root]
root = File.expand_path(options[:root])
+ # TODO Do some sanity checking here
store = FileStore.new(root)
end
if store.nil?
puts "You must specify a root to use a file store (the current default)"