@kumologica/sdk 3.2.0-beta1 → 3.2.0-beta11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,7 @@ const { NetworkConfigStore } = require('./lib/stores/settings-network-store');
37
37
  const AWSProfile = require('./lib/aws/aws-profile');
38
38
  const AWSDeployer = require('./lib/aws');
39
39
  const ServerlessDeployer = require('./lib/serverless');
40
+ const GithubDeployer = require('./lib/github');
40
41
 
41
42
  const Kumohub = require('./lib/kumohub');
42
43
  const deployCli = require('@kumologica/builder');
@@ -48,6 +49,7 @@ const terminalEmitter = new events.EventEmitter();
48
49
  const awsDeployer = new AWSDeployer(terminalEmitter);
49
50
  const awsProfile = new AWSProfile();
50
51
  const serverlessDeployer = new ServerlessDeployer(terminalEmitter);
52
+ const githubDeployer = new GithubDeployer(terminalEmitter);
51
53
 
52
54
  const kumohub = new Kumohub(terminalEmitter);
53
55
 
@@ -133,12 +135,18 @@ async function generateScript(provider, projectInfo, params) {
133
135
  params,
134
136
  alias.profile
135
137
  );
136
- } else if (provider ==window.__kumologica.cloud.provider.serverless) {
138
+ } else if (provider == window.__kumologica.cloud.provider.serverless) {
137
139
  await serverlessDeployer.generateScript(
138
140
  projectInfo,
139
141
  params,
140
142
  alias.profile
141
143
  );
144
+ } else if (provider == window.__kumologica.cloud.provider.github) {
145
+ await githubDeployer.generateScript(
146
+ projectInfo,
147
+ params,
148
+ alias.profile
149
+ );
142
150
  }
143
151
  }
144
152
 
@@ -586,6 +594,8 @@ window.__kumologica.runtime.port = port;
586
594
  window.__kumologica.cloud = {provider: {}};
587
595
  window.__kumologica.cloud.provider.aws = "AWS";
588
596
  window.__kumologica.cloud.provider.serverless = "SERVERLESS";
597
+ window.__kumologica.cloud.provider.github = "GITHUB";
598
+
589
599
  window.__kumologica.cloud.profile = undefined;
590
600
  window.__kumologica.cloud.deploy = deploy;
591
601
  window.__kumologica.cloud.generateScript = generateScript;