Skip to content

Commit

Permalink
add plugin download url and v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
burakgzt committed Feb 15, 2023
1 parent 3c9b529 commit 75a177b
Show file tree
Hide file tree
Showing 21 changed files with 150 additions and 13 deletions.
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-nuage/nuage_provider/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.6
0.0.7
3 changes: 2 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "nuage",
"version":"0.0.6",
"version":"0.0.7",
"pluginDownloadURL": "github://api.github.com/nuage/pulumi-nuage",
"types": {
"nuage:aws:ArchitectureType": {
"type":"string",
Expand Down
1 change: 1 addition & 0 deletions sdk/go/nuage/aws/bucket_nuage.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/go/nuage/aws/containerFunction.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 101 additions & 0 deletions sdk/go/nuage/aws/pulumiUtilities.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/go/nuage/aws/repository.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/go/nuage/aws/serverlessDatabase.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/go/nuage/provider.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sdk/go/nuage/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"resource": true,
"name": "nuage",
"version": "0.0.6"
"version": "0.0.7",
"server": "github://api.github.com/nuage/pulumi-nuage"
}
14 changes: 14 additions & 0 deletions sdk/go/nuage/pulumiUtilities.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions sdk/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@pulumi/nuage",
"version": "0.0.6",
"version": "0.0.7",
"scripts": {
"build": "tsc",
"install": "node scripts/install-pulumi-plugin.js resource nuage 0.0.6"
"install": "node scripts/install-pulumi-plugin.js resource nuage 0.0.7"
},
"dependencies": {
"@pulumi/aws": "^5.0.0",
Expand All @@ -19,7 +19,8 @@
"@pulumi/pulumi": "latest"
},
"pulumi": {
"version": "0.0.6",
"resource": true
"version": "0.0.7",
"resource": true,
"pluginDownloadURL": "github://api.github.com/nuage/pulumi-nuage"
}
}
2 changes: 1 addition & 1 deletion sdk/nodejs/scripts/install-pulumi-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (args.indexOf("${VERSION}") !== -1) {
process.exit(0);
}

var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/nuage/pulumi-nuage"].concat(args), {
stdio: ["ignore", "inherit", "inherit"]
});

Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export function getVersion(): string {

/** @internal */
export function resourceOptsDefaults(): any {
return { version: getVersion() };
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/nuage/pulumi-nuage" };
}
3 changes: 3 additions & 0 deletions sdk/python/pulumi_nuage/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,6 @@ def lifted_func(*args, opts=None, **kwargs):
**resolved_args['kwargs']))

return (lambda _: lifted_func)

def get_plugin_download_url():
return "github://api.github.com/nuage/pulumi-nuage"
2 changes: 2 additions & 0 deletions sdk/python/pulumi_nuage/aws/bucket_nuage.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def _internal_init(__self__,
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.plugin_download_url is None:
opts.plugin_download_url = _utilities.get_plugin_download_url()
if opts.id is not None:
raise ValueError('ComponentResource classes do not support opts.id')
else:
Expand Down
2 changes: 2 additions & 0 deletions sdk/python/pulumi_nuage/aws/container_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ def _internal_init(__self__,
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.plugin_download_url is None:
opts.plugin_download_url = _utilities.get_plugin_download_url()
if opts.id is not None:
raise ValueError('ComponentResource classes do not support opts.id')
else:
Expand Down
2 changes: 2 additions & 0 deletions sdk/python/pulumi_nuage/aws/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def _internal_init(__self__,
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.plugin_download_url is None:
opts.plugin_download_url = _utilities.get_plugin_download_url()
if opts.id is not None:
raise ValueError('ComponentResource classes do not support opts.id')
else:
Expand Down
2 changes: 2 additions & 0 deletions sdk/python/pulumi_nuage/aws/serverless_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def _internal_init(__self__,
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.plugin_download_url is None:
opts.plugin_download_url = _utilities.get_plugin_download_url()
if opts.id is not None:
raise ValueError('ComponentResource classes do not support opts.id')
else:
Expand Down
2 changes: 2 additions & 0 deletions sdk/python/pulumi_nuage/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def _internal_init(__self__,
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.plugin_download_url is None:
opts.plugin_download_url = _utilities.get_plugin_download_url()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/pulumi_nuage/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"resource": true,
"name": "nuage",
"version": "0.0.6"
"version": "0.0.7",
"server": "github://api.github.com/nuage/pulumi-nuage"
}
6 changes: 3 additions & 3 deletions sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
from subprocess import check_call


VERSION = "0.0.6"
PLUGIN_VERSION = "0.0.6"
VERSION = "0.0.7"
PLUGIN_VERSION = "0.0.7"

class InstallPluginCommand(install):
def run(self):
install.run(self)
try:
check_call(['pulumi', 'plugin', 'install', 'resource', 'nuage', PLUGIN_VERSION])
check_call(['pulumi', 'plugin', 'install', 'resource', 'nuage', PLUGIN_VERSION, '--server', 'github://api.github.com/nuage/pulumi-nuage'])
except OSError as error:
if error.errno == errno.ENOENT:
print(f"""
Expand Down

0 comments on commit 75a177b

Please sign in to comment.