X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docs%2Fnarrative%2Fapplication.rst;h=1565e5f3301b1c9b1ae1243ab2c6c5aa205edd98;hb=adc6e51ff00d513cd68d4a046e87b25adf2021be;hp=148f1fa81f63296df128355031970ef9332331de;hpb=b7e54690262eb1021274aabb8e93188e49508150;p=osm%2FN2VC.git diff --git a/docs/narrative/application.rst b/docs/narrative/application.rst index 148f1fa..1565e5f 100644 --- a/docs/narrative/application.rst +++ b/docs/narrative/application.rst @@ -34,8 +34,8 @@ To deploy a new application, connect a model and then call its Deploying a Local Charm ----------------------- -To deploy a local charm, first upload it to the model, then -deploy it using the returned charm url. +To deploy a local charm, pass the charm directory path to +`Model.deploy()`. .. code:: python @@ -44,15 +44,11 @@ deploy it using the returned charm url. model = Model() await model.connect_current() - # Upload local charm to the model. - # The returned 'local:' url can be used to deploy the charm. - charm_url = await model.add_local_charm_dir( - '/home/tvansteenburgh/src/charms/ubuntu', 'trusty') - - # Deploy the charm using the 'local:' charm. + # Deploy a local charm using a path to the charm directory await model.deploy( - charm_url, + '/home/tvansteenburgh/src/charms/ubuntu', application_name='ubuntu', + series='trusty', )