Skip to content

Commit

Permalink
webapp new to up & chaging version to 0.2.0 (skipping versions in bet…
Browse files Browse the repository at this point in the history
…ween as per PM request) (#106)

adding isPreview metadata & updating command to up
  • Loading branch information
panchagnula authored Mar 22, 2018
1 parent a6b35e5 commit 84d12aa
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@
],
"webapp": [
{
"filename": "webapp-0.1.2-py2.py3-none-any.whl",
"sha256Digest": "6fb8a59aa38dff6b0d3a878742290cacac0eb0e50dc0fae2e6fbf7bd5c38f37b",
"downloadUrl": "https://github.com/panchagnula/azure-cli-extensions/raw/sisirap-extensions-whl/dist/webapp-0.1.2-py2.py3-none-any.whl",
"filename": "webapp-0.2.0-py2.py3-none-any.whl",
"sha256Digest": "a13151c899eabb66c3d853e9e46bcd5752f78e5a75c35eb09590f4673ac49279",
"downloadUrl": "https://github.com/panchagnula/azure-cli-extensions/raw/sisirap-extensions-whl/dist/webapp-0.2.0-py2.py3-none-any.whl",
"metadata": {
"classifiers": [
"Development Status :: 4 - Beta",
Expand Down Expand Up @@ -319,7 +319,7 @@
"metadata_version": "2.0",
"name": "webapp",
"summary": "An Azure CLI Extension to manage appservice resources",
"version": "0.1.2"
"version": "0.2.0"
}
}
],
Expand Down
6 changes: 3 additions & 3 deletions src/webapp/azext_webapp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def __init__(self, cli_ctx=None):

def load_command_table(self, _):
with self.command_group('webapp') as g:
g.custom_command('new', 'create_deploy_webapp')
g.custom_command('up', 'create_deploy_webapp')
return self.command_table

def load_arguments(self, _):
with self.argument_context('webapp new') as c:
c.argument('name', options_list=['--name', '-n'], help='name of the new webapp')
with self.argument_context('webapp up') as c:
c.argument('name', options_list=['--name', '-n'], help='name of the webapp to be created')
c.argument('dryrun',
help="shows summary of the create and deploy operation instead of executing it",
default=False, action='store_true')
Expand Down
8 changes: 4 additions & 4 deletions src/webapp/azext_webapp/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
from knack.help_files import helps


helps['webapp new'] = """
helps['webapp up'] = """
type: command
short-summary: Experimental command to create and deploy a web app.
Current supports Node on Linux & .NET Core on Windows.
Current supports includes Node on Linux & .NET Core on Windows.
examples:
- name: Create a web app with the default configuration.
text: >
az webapp new -n MyUniqueAppName --dryrun \n
az webapp new -n MyUniqueAppName -l locationName
az webapp up -n MyUniqueAppName --dryrun \n
az webapp up -n MyUniqueAppName -l locationName
"""
3 changes: 2 additions & 1 deletion src/webapp/azext_webapp/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"azext.minCliCoreVersion": "2.0.24"
"azext.minCliCoreVersion": "2.0.24",
"azext.isPreview" :true
}
4 changes: 2 additions & 2 deletions src/webapp/azext_webapp/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
update_app_settings,
_get_site_credential,
_get_scm_url,
_get_sku_name)
get_sku_name)

from .create_util import (
zip_contents_from_dir,
Expand Down Expand Up @@ -74,7 +74,7 @@ def create_deploy_webapp(cmd, name, location=None, dryrun=False):
location = available_locs[0]
# Remove spaces from the location string, incase the GeoRegion string is used
loc_name = location.replace(" ", "")
full_sku = _get_sku_name(sku)
full_sku = get_sku_name(sku)

is_linux = True if os_val == 'Linux' else False

Expand Down
2 changes: 1 addition & 1 deletion src/webapp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from codecs import open
from setuptools import setup, find_packages

VERSION = "0.1.2"
VERSION = "0.2.0"

CLASSIFIERS = [
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 84d12aa

Please sign in to comment.