Skip to content

Commit

Permalink
Refactoring resources file
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyman727 committed Sep 10, 2015
1 parent c582078 commit b818d77
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ function buildJSON(npmConfig) {
var promzardConfig;
ctx.config = npmConfig;
// Default to auto config
promzardConfig = path.resolve(__dirname + '/../', 'resources/init-default.js');
promzardConfig = path.resolve(__dirname + '/../', 'resources/javascript/init-default.js');
if (options.interactive) {
promzardConfig = path.resolve(__dirname + '/../', 'resources/init-config.js');
promzardConfig = path.resolve(__dirname + '/../', 'resources/javascript/init-config.js');
}

// Init promozard with appropriate config.
Expand Down Expand Up @@ -157,7 +157,7 @@ function generateSample() {
if (exists) {
return;
}
fs.createReadStream(path.resolve(__dirname, './../resources/', filename)).pipe(fs.createWriteStream(filepath));
fs.createReadStream(path.resolve(__dirname, './../resources/javascript/', filename)).pipe(fs.createWriteStream(filepath));
logs.info('Wrote \"Blinky\" example to ' + filepath);
return resolve();
});
Expand Down Expand Up @@ -199,10 +199,10 @@ function generateSample() {
return reject(new Error(mkdir_err(dir_src)));
}
// Copy over config file, the blinky main, and the toml file
fs.createReadStream(path.resolve(__dirname, './../resources/', file_config)).pipe(fs.createWriteStream(path_config));
fs.createReadStream(path.resolve(__dirname, './../resources/', file_toml)).pipe(fs.createWriteStream(path_toml));
fs.createReadStream(path.resolve(__dirname, './../resources/rust/', file_config)).pipe(fs.createWriteStream(path_config));
fs.createReadStream(path.resolve(__dirname, './../resources/rust/', file_toml)).pipe(fs.createWriteStream(path_toml));
logs.info('Initialized Cargo project...');
fs.createReadStream(path.resolve(__dirname, './../resources/', file_src)).pipe(fs.createWriteStream(path_src));
fs.createReadStream(path.resolve(__dirname, './../resources/rust/', file_src)).pipe(fs.createWriteStream(path_src));
logs.info('Wrote \"Blinky\" example to ' + path_src);
});
});
Expand Down
2 changes: 1 addition & 1 deletion lib/tessel/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var Ignore = require('fstream-ignore');
var RUN_PATH = '/tmp/remote-script/';
var PUSH_PATH = '/app/';
var PUSH_START_SCRIPT_NAME = 'start';
var NODE_PUSH_SCRIPT = __dirname + '/../../resources/start_node_script.sh';
var NODE_PUSH_SCRIPT = __dirname + '/../../resources/shell/start_node_script.sh';

// Used to store local functionality and allow
// exporting those definitions for testing.
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.

0 comments on commit b818d77

Please sign in to comment.