Skip to content

Commit

Permalink
code indent
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelic committed Jun 7, 2017
1 parent 78f0af4 commit 26e4d2b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ certificates, HTTP Basic authentication etc.

.. code-block:: python
# initialize a client
from aptly_api import Client
aptly = Client("http://aptly-endpoint.test/")
# initialize a client
from aptly_api import Client
aptly = Client("http://aptly-endpoint.test/")
# create a repository
aptly.repos.create("myrepo", comment="a test repo",
default_distribution="mydist",
default_component="main")
# create a repository
aptly.repos.create("myrepo", comment="a test repo",
default_distribution="mydist",
default_component="main")
# upload a package
aptly.files.upload("test_folder", "/tmp/mypkg_1.0_amd64.deb")
# upload a package
aptly.files.upload("test_folder", "/tmp/mypkg_1.0_amd64.deb")
# add the package to the repo
aptly.repos.add_uploaded_file("myrepo", "test_folder")
# add the package to the repo
aptly.repos.add_uploaded_file("myrepo", "test_folder")
License
Expand Down

0 comments on commit 26e4d2b

Please sign in to comment.