-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from deepu105/xetys-uaa-server
uaa server improvements
- Loading branch information
Showing
83 changed files
with
1,502 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
generators/**/templates | ||
generators/**/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ services: | |
- docker | ||
language: node_js | ||
node_js: | ||
- "4.4.2" | ||
- "4.4.3" | ||
jdk: | ||
- oraclejdk8 | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,40 @@ | ||
'use strict'; | ||
var S3 = require('./s3.js'), | ||
Rds = require('./rds.js'), | ||
chalk = require('chalk'), | ||
Eb = require('./eb.js'); | ||
|
||
try { | ||
var Aws = require('aws-sdk'); | ||
} catch (e) { | ||
console.log( | ||
'You don\'t have the AWS SDK installed. Please install it in the JHipster generator directory.\n\n' + | ||
'WINDOWS\n' + | ||
'cd %USERPROFILE%\\AppData\\Roaming\\npm\\node_modules\\generator-jhipster\n' + | ||
'npm install aws-sdk progress node-uuid\n\n' + | ||
'LINUX / MAC\n' + | ||
'cd /usr/local/lib/node_modules/generator-jhipster\n' + | ||
'npm install aws-sdk progress node-uuid' | ||
); | ||
process.exit(e.code); | ||
} | ||
var Aws, generator; | ||
|
||
var AwsFactory = module.exports = function AwsFactory(options) { | ||
var AwsFactory = module.exports = function AwsFactory(generatorRef) { | ||
try { | ||
Aws = require('aws-sdk'); | ||
generator = generatorRef; | ||
} catch (e) { | ||
generator.env.error(chalk.red( | ||
'You don\'t have the AWS SDK installed. Please install it in the JHipster generator directory.\n\n') + | ||
chalk.yellow('WINDOWS\n') + | ||
chalk.green('cd %USERPROFILE%\\AppData\\Roaming\\npm\\node_modules\\generator-jhipster\n' + | ||
'npm install aws-sdk progress node-uuid\n\n') + | ||
chalk.yellow('LINUX / MAC\n') + | ||
chalk.green('cd /usr/local/lib/node_modules/generator-jhipster\n' + | ||
'npm install aws-sdk progress node-uuid') | ||
); | ||
} | ||
}; | ||
|
||
AwsFactory.prototype.init = function initAws(options) { | ||
Aws.config.region = options.region; | ||
}; | ||
|
||
AwsFactory.prototype.getS3 = function getS3() { | ||
return new S3(Aws); | ||
return new S3(Aws, generator); | ||
}; | ||
|
||
AwsFactory.prototype.getRds = function getRds() { | ||
return new Rds(Aws); | ||
return new Rds(Aws, generator); | ||
}; | ||
|
||
AwsFactory.prototype.getEb = function getEb() { | ||
return new Eb(Aws); | ||
return new Eb(Aws, generator); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.