README.md in docker-api-1.5.0 vs README.md in docker-api-1.5.1

- old
+ new

@@ -8,11 +8,11 @@ ------------ Add this line to your application's Gemfile: ```ruby -gem 'docker-api' +gem 'docker-api', :require => 'docker' ``` And then run: ```shell @@ -187,10 +187,24 @@ # Inspect a Container's changes to the file system. container.changes # => [{'Path'=>'/dev', 'Kind'=>0}, {'Path'=>'/dev/kmsg', 'Kind'=>1}] +# Copy files/directories from the Container. Note that these are exported as tars. +container.copy('/etc/hosts') { |chunk| puts chunk } + +hosts0000644000000000000000000000023412100405636007023 0ustar +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +fe00::0 ip6-localnet +ff00::0 ip6-mcastprefix +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +# => Docker::Container { :id => a1759f3e2873, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } } + + + # Wait for the current command to finish executing. If an argument is given, # will timeout after that number of seconds. The default is one minute. container.wait(15) # => {'StatusCode'=>0} @@ -210,9 +224,13 @@ # Commit the Container and run a new command. The second argument is the number # of seconds the Container should wait before stopping its current command. container.run('pwd', 10) # => Docker::Image { :id => 4427be4199ac, :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } } + +# Delete a Container. +container.delete +# => nil # Request all of the Containers. By default, will only return the running Containers. Docker::Container.all(:all => true) # => [Docker::Container { :id => , :connection => Docker::Connection { :url => http://localhost, :options => {:port=>4243} } }] ```