Skip to content

Commit

Permalink
move files to new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnfeldman committed Mar 31, 2016
1 parent c975718 commit de17dfa
Show file tree
Hide file tree
Showing 46 changed files with 30 additions and 6 deletions.
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
====

Copyright 2013 Apigee Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

====

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions bin/lib/deploy-auth.js → cli/lib/deploy-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Deployment.prototype.deployEdgeMicroInternalProxy = function deployEdgeMicroInte
debug: options.debug,
verbose: options.debug,
api: 'edgemicro-internal',
directory: path.join(__dirname,'..','..','auth'),
directory: path.join(__dirname,'..','..','edge'),
'import-only': false,
'resolve-modules': false,
virtualhosts: this.virtualHosts || 'default'
Expand All @@ -60,7 +60,7 @@ Deployment.prototype.deployWithLeanPayload = function deployWithLeanPayload( opt
// copy bin folder into tmp
tasks.push(function(cb) {
console.log('copy auth app into tmp dir');
cpr(path.resolve(__dirname, '..', '..', 'auth', 'app'), tmpDir.name, cb);
cpr(path.resolve(__dirname, '..', '..', 'edge', 'auth'), tmpDir.name, cb);
});

// copy bin folder into tmp
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion bin/lib/private.js → cli/lib/private.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Private.prototype.configureEdgemicro = function(options, cb) {
// configures Callout.xml & default.xml of apiproxy being deployed
Private.prototype.configureEdgeMicroInternalProxy = function configureEdgeMicroInternalProxy(options, callback) {
const that = this;
const apipath = path.join(__dirname, '..', '..', 'auth', 'apiproxy');
const apipath = path.join(__dirname, '..', '..', 'edge', 'apiproxy');
options.proxyName = 'edgemicro-auth';
var resPath;
try {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion auth/README.md → edge/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#private directories
#edge dependency directories
these files are for the cli configure command
they are deployed to create the edge-auth proxy
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
}
},
"scripts": {
"package": "node bin/package.js",
"package": "node cli/package.js",
"test": "mocha tests",
"preinstall": "pushd auth;pushd app;npm i;popd;popd;"
"preinstall": "pushd edge;pushd auth;npm i;popd;popd;"
}
}

0 comments on commit de17dfa

Please sign in to comment.