Commit Graph

667 Commits

Author SHA1 Message Date
Juan Cruz Viotti
50ff40f6f3 Log warning if bundle not found 2015-03-02 09:03:11 -04:00
Juan Cruz Viotti
01d2edb819 Precompile CoffeeScript files 2015-02-26 11:47:34 -04:00
Juan Cruz Viotti
2085e71f33 Remove unecessary double quotes 2015-02-26 11:38:48 -04:00
Juan Cruz Viotti
980e55afd3 Simplify usage help string 2015-02-26 11:15:15 -04:00
Juan Cruz Viotti
d520918071 Multi arch builds 2015-02-26 10:12:25 -04:00
Juan Cruz Viotti
9c98adb712 Prevent writing accidentally to system drives 2015-02-25 11:12:58 -04:00
Juan Cruz Viotti
91a2453ebb Make use of new nplug version 2015-02-24 13:36:10 -04:00
Juan Cruz Viotti
bec264d936 Add trailing dash to plugin list prefix 2015-02-12 13:22:28 -04:00
Juan Cruz Viotti
2ea628bc4a Add plugins npm routines TODO 2015-02-12 13:17:20 -04:00
Juan Cruz Viotti
7edcf9925e Silence plugin install command 2015-02-12 13:16:21 -04:00
Juan Cruz Viotti
5e69995bb0 Refactor npm related logic to plugins 2015-02-12 13:10:45 -04:00
Juan Cruz Viotti
6c70f64f6a Log installed plugins 2015-02-12 12:54:59 -04:00
Juan Cruz Viotti
3445388db3 Implement plugin rm command 2015-02-12 12:50:40 -04:00
Juan Cruz Viotti
82ac558d7f Implement plugin install command 2015-02-12 12:23:01 -04:00
Juan Cruz Viotti
7dd34f4a0e Fix option parameter name issue 2015-02-12 10:20:00 -04:00
Juan Cruz Viotti
74b1092e9a Implement plugins command 2015-02-12 09:41:25 -04:00
Juan Cruz Viotti
94d462835c Remove hashbang from lib/resin.js 2015-02-11 15:34:37 -04:00
Juan Cruz Viotti
7c836132ad Add node version to version command output 2015-02-11 15:30:49 -04:00
Juan Cruz Viotti
9ce8193c1f Call application with bundled nodejs binary 2015-02-11 13:13:12 -04:00
Juan Cruz Viotti
d97a4d9d49 Use visuals.widgets.select for app create command 2015-02-11 10:07:53 -04:00
Juan Cruz Viotti
a6a3eeae6d Make use of resin.models.device.getSupportedDeviceTypes() asynchronously 2015-02-11 09:53:48 -04:00
Juan Cruz Viotti
65729012b6 Fix logs display 2015-02-10 15:43:39 -04:00
Juan Cruz Viotti
d3f91797bf Fix help command now that getMatchCommand() is async 2015-02-10 14:44:39 -04:00
Juan Cruz Viotti
eeee1ce8e1 Implement in place progress bar 2015-02-10 12:55:18 -04:00
Juan Cruz Viotti
6739b7fbca Make use of async in app.coffee 2015-02-10 11:55:30 -04:00
Juan Cruz Viotti
8d99526a96 Refactor plugins logic into a new file 2015-02-10 11:46:22 -04:00
Juan Cruz Viotti
f712064ab4 Move tests to tests/ and flatten errors/ module directory 2015-02-10 11:38:19 -04:00
Juan Cruz Viotti
65fbe12f22 Make use of new Capitano stdin support to get rid of helpers/ 2015-02-10 11:32:06 -04:00
Juan Cruz Viotti
8275275a05 Make login command accept options instead of colon separated credentials
For consistency
2015-02-09 11:48:13 -04:00
Juan Cruz Viotti
4d49655ab2 Enable registering programatically 2015-02-09 11:43:10 -04:00
Juan Cruz Viotti
2143818291 Remove unneeded dependency 2015-02-09 10:02:09 -04:00
Juan Cruz Viotti
d2f319c725 Move chop functionality to Resin CLI Visuals 2015-02-06 11:22:11 -04:00
Juan Cruz Viotti
e769fdc205 Prevent linter long line warning 2015-02-06 11:11:38 -04:00
Juan Cruz Viotti
ca961d04c5 Pass a ProgressState instance to bar.tick() directly 2015-02-06 08:21:32 -04:00
Juan Cruz Viotti
3005a91658 Write device init help page 2015-02-05 09:56:22 -04:00
Juan Cruz Viotti
8adf943e51 Make use of get-stdin 2015-02-05 09:10:10 -04:00
Juan Cruz Viotti
0dba133b0a Fix comment spacing 2015-02-05 08:56:52 -04:00
Juan Cruz Viotti
780893b411 Make os download modify options.output directly 2015-02-05 08:53:05 -04:00
Juan Cruz Viotti
bcbb7d8e96 Upgrade to Capitano v1.3.1 and remove unneeded try/catch clause
Capitano v1.3.1 introduces support for automatically catching action
sync thrown errors
2015-02-05 08:49:57 -04:00
Juan Cruz Viotti
e6081238a1 Implement new device init command 2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
0a7b83308a Add TODO on actions/keys about extracting ssh key chop 2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
33b66effc2 Make use of new Resin CLI visuals patterns 2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
3ee228c862 Move os network params options to command-options 2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
3f51739e2e Send outputFile to done() in os.download 2015-02-04 15:17:50 -04:00
Juan Cruz Viotti
9f4ae4ac3f Rename current device init to os download 2015-02-04 15:17:50 -04:00
Juan Cruz Viotti
a4a8c4e61a Simplify os download a bit with _.unary 2015-02-04 15:08:38 -04:00
Juan Cruz Viotti
e7823e2707 Make use of SDK ProgressState enhancement to simplify os download 2015-02-04 15:06:07 -04:00
Juan Cruz Viotti
531a48a158 Fix generateCacheName error not being caught 2015-02-03 13:51:33 -04:00
Juan Cruz Viotti
6ce0fdc4ab Make use of diskio 2015-02-02 12:25:22 -04:00
Juan Cruz Viotti
1a595412d5 Move unused diskpart script 2015-02-02 08:23:30 -04:00
Juan Cruz Viotti
fd079b5794 Make use of diskpart npm module 2015-01-30 15:41:14 -04:00
Juan Cruz Viotti
e9db8c09e8 Fix stdout argument issue 2015-01-30 14:19:36 -04:00
Juan Cruz Viotti
9e8e402788 Implement diskpart module 2015-01-30 14:16:24 -04:00
Juan Cruz Viotti
c7c7d55338 Allow to choose a device interactively from device init 2015-01-30 12:55:56 -04:00
Juan Cruz Viotti
654ab26609 Make use of drivelist 1.1.0 2015-01-30 11:48:15 -04:00
Juan Cruz Viotti
fc6dda5d22 Make use of published drivelist 2015-01-30 11:38:46 -04:00
Juan Cruz Viotti
fd7d9858a9 Fix switch case 2015-01-30 10:37:23 -04:00
Juan Cruz Viotti
ac78a8bc02 Implement linux.list() 2015-01-30 10:30:28 -04:00
Juan Cruz Viotti
a220bc87ad Include USB Card reader in OSX test 2015-01-30 10:02:07 -04:00
Juan Cruz Viotti
0b1d83a70b Rename list spec stdout variable to drives 2015-01-30 09:59:28 -04:00
Juan Cruz Viotti
7beca02eda Mention drives command in device init help 2015-01-30 09:58:54 -04:00
Juan Cruz Viotti
80079d00a5 Implement win32.list() 2015-01-30 09:52:41 -04:00
Juan Cruz Viotti
1ce7178aa3 Test drive.osx.list() 2015-01-30 09:23:56 -04:00
Juan Cruz Viotti
ad0be5f63c Refactor drive module 2015-01-30 09:16:55 -04:00
Juan Cruz Viotti
fd1e632b50 List drives in OS X 2015-01-30 08:45:38 -04:00
Juan Cruz Viotti
d284e92520 Fix broken test 2015-01-29 15:28:33 -04:00
Juan Cruz Viotti
03c6c72df6 Integrate new progress bar 2015-01-29 14:59:57 -04:00
Juan Cruz Viotti
2d5549873a Prettier progress bar 2015-01-29 14:06:38 -04:00
Juan Cruz Viotti
35633f3612 Math.floor() percentage 2015-01-29 14:05:10 -04:00
Juan Cruz Viotti
2b992ec233 Simple progress bar approach 2015-01-29 14:01:21 -04:00
Juan Cruz Viotti
3e938f7808 Remove done message at the end of windosu execution 2015-01-29 12:29:35 -04:00
Juan Cruz Viotti
38139ed169 Simplify conditional 2015-01-29 12:27:37 -04:00
Juan Cruz Viotti
f767f637f7 Fix conditional 2015-01-29 12:23:30 -04:00
Juan Cruz Viotti
8437757ca8 Prevent infinite loop 2015-01-29 12:21:56 -04:00
Juan Cruz Viotti
9069b07d4a Integrate windosu 2015-01-29 12:04:48 -04:00
Juan Cruz Viotti
7949296cec Extend EACCESS, EPERM errors with OS specific descriptions 2015-01-29 10:39:12 -04:00
Juan Cruz Viotti
e9e02e3272 Handle ENOENT windows errors 2015-01-28 15:51:36 -04:00
Juan Cruz Viotti
00623833cc Extend errors.handle to catch EPERM as well 2015-01-28 15:45:30 -04:00
Juan Cruz Viotti
d75a19fc6e Remove debugging logging 2015-01-28 15:40:00 -04:00
Juan Cruz Viotti
0d06524162 Surround diskpart script in double quotes 2015-01-28 15:38:39 -04:00
Juan Cruz Viotti
95d8d2fe8f Add missing path dependency 2015-01-28 15:30:08 -04:00
Juan Cruz Viotti
9de4a3c556 Some fixes and refactoring 2015-01-28 15:26:56 -04:00
Juan Cruz Viotti
96d221fbcf Catch createWriteStream errors 2015-01-28 15:13:43 -04:00
Juan Cruz Viotti
8bfdebbfbb Fix drive dependencies 2015-01-28 14:53:34 -04:00
Juan Cruz Viotti
320981770e Erase MBR before rescanning 2015-01-28 14:51:11 -04:00
Juan Cruz Viotti
8b0ce36955 Use diskpart to rescan the drives 2015-01-28 14:41:53 -04:00
Juan Cruz Viotti
dcebbc0044 Make use of a 512 block aligner 2015-01-28 10:16:01 -04:00
Juan Cruz Viotti
db3d4292f4 Add Windows support to device init command 2015-01-28 08:33:50 -04:00
Juan Cruz Viotti
0e4245523b Fix errors/ test suite sudden failure issue 2015-01-23 14:58:57 -04:00
Juan Cruz Viotti
4103a4195a Move changeProjectDirectory outside the nested code 2015-01-23 13:54:30 -04:00
Juan Cruz Viotti
ff0b513188 Make use of nplugm.load 2015-01-23 13:24:57 -04:00
Juan Cruz Viotti
ff9558ab32 Simplify plugin loading routing with getPluginsByGlob() 2015-01-23 11:16:31 -04:00
Juan Cruz Viotti
af9ae6579c Move plugin module to nplugm 2015-01-23 10:23:47 -04:00
Juan Cruz Viotti
155a6775e4 Make use of device_type directly 2015-01-22 13:20:20 -04:00
Juan Cruz Viotti
a275de436d Make use of simplified table widget 2015-01-22 13:06:02 -04:00
Juan Cruz Viotti
092a246b3d Fix Windows path issues 2015-01-21 12:51:50 -04:00
Juan Cruz Viotti
50325d0f8f Make use of resin-cli-visuals and get rid of local ui module 2015-01-21 09:50:19 -04:00
Juan Cruz Viotti
2c90d1176c Reorder device init declaration to prevent help conflicts 2015-01-20 15:52:13 -04:00
Juan Cruz Viotti
9cb84ee612 Allow to quiet download progress bar 2015-01-20 15:41:14 -04:00
Juan Cruz Viotti
aa6680d57a Fix device init help OS X command 2015-01-20 15:36:01 -04:00
Juan Cruz Viotti
aa4d7a408a Implement device init command (for UNIX only) 2015-01-20 15:34:47 -04:00
Juan Cruz Viotti
f04f6f8702 Move ProgressBar to ui.widgets 2015-01-20 15:10:18 -04:00
Juan Cruz Viotti
da02857a6e Handle EACCES errors 2015-01-20 15:09:26 -04:00
Juan Cruz Viotti
af7a40bd68 Easy shortcut for one command plugins 2015-01-16 10:41:22 -03:00
Juan Cruz Viotti
a6660ad4ec Improve plugin architecture importing technique 2015-01-16 10:38:19 -03:00
Juan Cruz Viotti
d49677581b Make use of Capitano permissions feature 2015-01-16 09:34:59 -03:00
Juan Cruz Viotti
5abc4e550f Move command declarations next to their definitions 2015-01-15 14:18:39 -03:00
Juan Cruz Viotti
f94be29047 Remove unused error.handleCallback function 2015-01-15 11:39:18 -03:00
Juan Cruz Viotti
a6282d2b28 Get rid of log module
Didn't provide that much value
2015-01-15 11:36:43 -03:00
Juan Cruz Viotti
9a3b048b9f Move help facade to help actions module 2015-01-15 11:18:34 -03:00
Juan Cruz Viotti
72d08ffbbf Move version action to actions/ 2015-01-15 11:16:07 -03:00
Juan Cruz Viotti
c4da5f0008 Remove obsolete comment 2015-01-15 11:11:10 -03:00
Juan Cruz Viotti
3e055b32d2 Update Capitano to v1.2.0 and make use of done callback feature 2015-01-15 10:47:17 -03:00
Juan Cruz Viotti
2a8f1f1dc2 Implement plugin support 2015-01-14 15:42:05 -03:00
Juan Cruz Viotti
043a34cc7c Decouple permissions from http mocks and fixtures 2015-01-13 08:51:02 -03:00
Juan Cruz Viotti
975e133d5a Refactor to not use ConnectionParams 2015-01-12 09:12:30 -03:00
Juan Cruz Viotti
243a05a4e2 Prevent note callback from being called twice 2015-01-09 15:07:50 -03:00
Juan Cruz Viotti
5a3254dc5e Get rid of cache module 2015-01-09 13:41:32 -03:00
Juan Cruz Viotti
2b5c1a664e Remove unused isDeviceUUIDValid helper function 2015-01-09 13:28:27 -03:00
Juan Cruz Viotti
0753bd1fe9 Don't compute device type slug as the logic is implicit on the SDK 2015-01-09 13:16:10 -03:00
Juan Cruz Viotti
f36e13658f Remove credentials filtering when logging in after registering 2015-01-09 13:06:17 -03:00
Juan Cruz Viotti
cdeaab18c8 Remove key trimming logic as it was moved to the SDK 2015-01-09 12:54:35 -03:00
Juan Cruz Viotti
05812ba442 Implement and make use of errors.handleCallback()
This function is introduced to remove some duplication
2015-01-09 12:22:18 -03:00
Juan Cruz Viotti
41fcedb171 Remove TODO that has been moved to the SDK 2015-01-09 10:46:35 -03:00
Juan Cruz Viotti
8c02e88ab5 Add logout error handler 2015-01-09 10:38:06 -03:00
Juan Cruz Viotti
807bc2f047 Make use of new SDK logs feature 2015-01-09 10:34:26 -03:00
Juan Cruz Viotti
bf7430d7fd Move logs logic to a nested logs module 2015-01-09 09:42:46 -03:00
Juan Cruz Viotti
5ec4abc710 Make deviceOption required 2015-01-08 13:30:15 -03:00
Juan Cruz Viotti
b5701f53f5 Make use of isSystemVariable from Resin SDK 2015-01-08 13:15:40 -03:00
Juan Cruz Viotti
d2b0772673 Remove duplication by relying on Capitano's new required option feature 2015-01-08 12:11:10 -03:00
Juan Cruz Viotti
dc75481880 Improve TODO comment for clarity sake 2015-01-08 11:01:47 -03:00
Juan Cruz Viotti
2f1275d617 Remove unneeded dependency 2015-01-08 11:01:04 -03:00
Juan Cruz Viotti
0452916a87 Integrate with connection.ConnectionParams 2015-01-08 10:56:46 -03:00
Juan Cruz Viotti
f000509995 Get rid of utils/mock 2015-01-08 09:43:50 -03:00
Juan Cruz Viotti
12f46be691 Partially get rid of nested sdk 2015-01-08 09:39:38 -03:00
Juan Cruz Viotti
8ac36ced4d Decouple resin sdk from it's surroundings 2015-01-06 15:02:03 -03:00
Juan Cruz Viotti
07c57d335b Refactor table to get rid of map feature 2015-01-06 14:12:11 -03:00
Juan Cruz Viotti
57c86f920c Stop using table map feature 2015-01-06 14:07:35 -03:00
Juan Cruz Viotti
19e151e521 Simplify conditional 2015-01-06 13:57:11 -03:00
Juan Cruz Viotti
af98a89e51 Make errors.handle handle EISDIR and ENOENT 2015-01-06 13:54:40 -03:00
Juan Cruz Viotti
e9caca8c24 Rename error code to error exit code 2015-01-06 13:46:31 -03:00
Juan Cruz Viotti
ac00a96728 Move device manipulation logic to device model 2015-01-06 13:35:38 -03:00
Juan Cruz Viotti
be2b556d91 Move device display name logic to application model 2015-01-06 13:24:11 -03:00
Juan Cruz Viotti
c311738dd1 Move application field manipulations to the model 2015-01-06 13:22:40 -03:00
Juan Cruz Viotti
45a4f8eda0 Remove unnecessary object keys deletion 2015-01-06 13:15:40 -03:00
Juan Cruz Viotti
af8d1e4517 Implement devices supported command 2014-12-24 12:50:30 -04:00
Juan Cruz Viotti
14f047da53 Remove obsolete comment 2014-12-24 12:44:19 -04:00
Juan Cruz Viotti
3f9270cbb9 Implement note command 2014-12-24 12:40:40 -04:00
Juan Cruz Viotti
16ddd8ccb6 Implement interactive signup form 2014-12-24 11:14:30 -04:00
Juan Cruz Viotti
33e209def5 Add register function to resin/auth 2014-12-24 10:59:25 -04:00
Juan Cruz Viotti
0983506efb Fix bug in device command 2014-12-23 09:54:34 -04:00
Juan Cruz Viotti
aefb809c11 Disable colour highlighting 2014-12-23 09:21:11 -04:00
Juan Cruz Viotti
4ad7fd0132 Make devices command application option based 2014-12-23 08:54:15 -04:00
Juan Cruz Viotti
634653609e Remove IP Address from devices list
Some devices have a very long set of ips.
2014-12-23 08:44:13 -04:00
Juan Cruz Viotti
8d08affcd8 Move parseCredentials() to helpers 2014-12-22 15:48:11 -04:00
Juan Cruz Viotti
68a6da9ffe Make resin/server private 2014-12-22 15:42:39 -04:00
Juan Cruz Viotti
1b9c62a50f Completely decouple client code from server module 2014-12-22 15:40:57 -04:00
Juan Cruz Viotti
aeafd23e43 Make resin/errors private 2014-12-22 15:31:11 -04:00
Juan Cruz Viotti
0746723abd Decouple client code from resin.errors 2014-12-22 15:29:15 -04:00
Juan Cruz Viotti
da099e876d Use internal errors module in app.coffee 2014-12-22 15:28:11 -04:00
Juan Cruz Viotti
5578b7edab Make more obvious that helpers is private 2014-12-22 15:26:57 -04:00
Juan Cruz Viotti
212c06e5a2 Decouple client code from server by creating key model 2014-12-22 15:18:47 -04:00
Juan Cruz Viotti
6cb8d4e466 Remove almost empty error spec 2014-12-22 15:03:47 -04:00
Juan Cruz Viotti
a6b3ca1442 Mix device module with device model 2014-12-22 15:02:52 -04:00
Juan Cruz Viotti
cda24c9e1b Move os.generateCacheName outside Resin SDK 2014-12-22 14:50:54 -04:00
Juan Cruz Viotti
8c6db6608d Remove os/windows module for now 2014-12-22 14:47:30 -04:00
Juan Cruz Viotti
c4422a171c Remove unused config module 2014-12-22 14:45:16 -04:00
Juan Cruz Viotti
be08a83765 Move token as an auth submodule 2014-12-22 14:43:38 -04:00
Juan Cruz Viotti
46ebb7b1fd Move errors.handle() out of resin sdk 2014-12-22 12:47:12 -04:00
Juan Cruz Viotti
2351fa25a0 Move log out of resin sdk 2014-12-22 12:41:14 -04:00
Juan Cruz Viotti
5ae3077df9 Implement example clone command 2014-12-22 12:20:08 -04:00
Juan Cruz Viotti
082382d244 Implement examples and example <id> commands 2014-12-22 12:00:01 -04:00
Juan Cruz Viotti
0a13fb54b5 Add example JSON data 2014-12-22 11:59:47 -04:00
Juan Cruz Viotti
893d836937 Implement stdin support for key add command 2014-12-22 10:30:21 -04:00
Juan Cruz Viotti
a8678f419b Implement "project" global option 2014-12-22 10:08:12 -04:00
Juan Cruz Viotti
eb34d957f3 Implement env rename command 2014-12-19 14:29:53 -04:00
Juan Cruz Viotti
de4c3c986e Implement env add command 2014-12-19 14:07:53 -04:00
Juan Cruz Viotti
006f3e8aca Implement key add command 2014-12-19 13:06:58 -04:00
Juan Cruz Viotti
ff152c987d Implement device rename command 2014-12-19 10:05:54 -04:00
Juan Cruz Viotti
6cfe2bdc49 Make use of Capitano for command line parsing 2014-12-19 09:15:38 -04:00
Juan Cruz Viotti
b30b41d4bb Enable auth whoami command 2014-12-12 10:25:32 -04:00
Juan Cruz Viotti
40fc9fca4f Persist username in dataPrefix/username 2014-12-12 10:12:06 -04:00
Juan Cruz Viotti
15c73b6ed5 Document and refactor resin.vcs 2014-12-12 09:22:35 -04:00
Juan Cruz Viotti
596446835a Reimplement app init with resin.vcs 2014-12-11 16:00:24 -04:00
Juan Cruz Viotti
8d5bba9558 Implement VCS module 2014-12-11 15:51:22 -04:00
Juan Cruz Viotti
001d7be622 Implement app init command 2014-12-11 11:37:16 -04:00
Juan Cruz Viotti
bf9f1bb9c9 Make use of conf.js instead of mantaining CliConf in the codebase 2014-12-11 11:34:36 -04:00
Juan Cruz Viotti
b9085c595d Add empty description to glob command 2014-12-10 14:34:22 -04:00
Juan Cruz Viotti
3717831c38 Implement errors.handle() debug support 2014-12-10 14:13:42 -04:00
Juan Cruz Viotti
890d672671 Fix undefined rimraf issue after update 2014-12-10 13:54:54 -04:00
Juan Cruz Viotti
06f6b47fd1 Show help if no command is passed 2014-12-10 13:44:56 -04:00
Juan Cruz Viotti
e1e7c33752 Show help when entering an invalid command 2014-12-10 10:29:23 -04:00
Juan Cruz Viotti
f5a0c7d6e5 Upgrade old resin-platform-api to pinejs-client-js 2014-12-09 14:56:49 -04:00
Juan Cruz Viotti
be2282d70f Remove obsolete comment 2014-12-09 14:36:54 -04:00
Juan Cruz Viotti
37797f3416 Get rid of formatLongString in favor of _.chop 2014-12-09 14:35:45 -04:00
Juan Cruz Viotti
95e3e7b8b7 Remove plugin-loader as we need to rethink the whole thing to make it Windows compatible 2014-12-09 14:35:41 -04:00
Juan Cruz Viotti
e6a982d92c Fix resin/helpers spec os dependant paths 2014-12-09 13:46:16 -04:00
Juan Cruz Viotti
75ce68c789 Implement os/windows.parseWmicDiskDriveGet() 2014-12-09 12:47:43 -04:00
Juan Cruz Viotti
9dbf3a21cf Add TODO about underscore string functions 2014-12-09 12:03:12 -04:00
Juan Cruz Viotti
f658fab566 Get rid of data/fsUtils 2014-12-09 09:05:37 -04:00
Juan Cruz Viotti
d62248b6d3 Remove unneeded dependency in fs-utils 2014-12-09 08:48:41 -04:00
Juan Cruz Viotti
25d2a10909 Simplify data.remove() 2014-12-09 08:47:30 -04:00
Juan Cruz Viotti
d9bfd22909 Implement data.getText and data.setText shortcut functions 2014-12-09 08:44:45 -04:00
Juan Cruz Viotti
9f713395af Remove isDirectory duplication in plugin-loader 2014-12-08 11:12:23 -04:00
Juan Cruz Viotti
b4a49113fb Remove helpers.isAbsolutePath() in favor of fsPlus.isAbsolute() 2014-12-08 11:09:01 -04:00
Juan Cruz Viotti
5059bcb212 Get rid of fsUtils.isDirectory 2014-12-08 11:02:38 -04:00
Juan Cruz Viotti
f75d06b302 Fix documentation examples for fsUtils.isDirectory 2014-12-08 10:54:37 -04:00
Juan Cruz Viotti
18dc048302 Add parseCredentials todo comment 2014-12-08 10:17:33 -04:00
Juan Cruz Viotti
9bfd686c5c Increase readability of authenticate() 2014-12-08 10:16:37 -04:00
Juan Cruz Viotti
25eedd22a0 Update docs 2014-12-08 10:13:01 -04:00
Juan Cruz Viotti
c2c81220d6 Document resin/token 2014-12-08 08:48:50 -04:00
Juan Cruz Viotti
1885d319bf Document resin/server 2014-12-08 08:48:39 -04:00
Juan Cruz Viotti
a41d55f147 Document resin/os 2014-12-08 08:48:30 -04:00
Juan Cruz Viotti
68f3d601cb Document all models 2014-12-08 08:48:19 -04:00
Juan Cruz Viotti
ad74cbaec0 Add throw type to log.array() 2014-12-05 15:34:53 -04:00
Juan Cruz Viotti
3fbb7b5310 Document resin/models/_canvas 2014-12-05 15:33:24 -04:00
Juan Cruz Viotti
3d02acaf20 Document resin/log 2014-12-05 15:24:38 -04:00
Juan Cruz Viotti
6b3042760e Document resin/helpers 2014-12-05 15:10:57 -04:00
Juan Cruz Viotti
88ecade342 Document resin/errors 2014-12-05 15:04:49 -04:00
Juan Cruz Viotti
98e845a90b Document resin/device 2014-12-05 14:48:47 -04:00
Juan Cruz Viotti
8c774bace2 Document resin/data/fs-utils 2014-12-05 14:39:12 -04:00
Juan Cruz Viotti
608716a692 Document resin/data 2014-12-05 14:32:12 -04:00
Juan Cruz Viotti
725f0ce014 Document resin/data-prefix 2014-12-05 14:11:45 -04:00
Juan Cruz Viotti
842336e61b Fix callback documentation issue 2014-12-05 14:08:51 -04:00
Juan Cruz Viotti
0c5126f0d5 Document resin/config 2014-12-05 14:05:09 -04:00
Juan Cruz Viotti
df12d5108d Document resin/auth 2014-12-05 13:49:33 -04:00
Juan Cruz Viotti
3c3cae2096 Remove cli permissions pending test 2014-12-05 12:55:48 -04:00
Juan Cruz Viotti
ceb2a1cf63 Refactor tests 2014-12-05 12:52:31 -04:00
Juan Cruz Viotti
4b74ec7fc4 Move UI outside resin module 2014-12-05 12:00:15 -04:00
Juan Cruz Viotti
e7495fa72d Move cli outside of resin module 2014-12-05 11:51:52 -04:00
Juan Cruz Viotti
4d0ecbdc4c Implement device info command 2014-12-05 11:32:14 -04:00
Juan Cruz Viotti
199635b311 Fix is_web_accessible table key bug 2014-12-05 11:25:45 -04:00
Juan Cruz Viotti
0c55a4afb6 Integrate CliConf with application 2014-12-05 11:09:31 -04:00
Juan Cruz Viotti
42815ceff9 Implement Cli Conf draft 2014-12-05 10:52:43 -04:00
Juan Cruz Viotti
511e753256 Support user defined configuration file 2014-12-03 12:03:54 -04:00
Juan Cruz Viotti
1b8290ade1 Cross platform home directory 2014-12-03 09:31:36 -04:00
Juan Cruz Viotti
4143b6da49 Namespace directories inside config.directories 2014-12-03 09:26:14 -04:00
Juan Cruz Viotti
62b15cce92 Add TODO regarding quieting progress bar 2014-12-03 09:09:36 -04:00
Juan Cruz Viotti
ffdd44752a Integrate nicer progress bar for os:download 2014-12-02 17:40:13 -04:00
Juan Cruz Viotti
2b5d95af3a Support --output option 2014-12-02 11:53:34 -04:00
Juan Cruz Viotti
7ea4ef84b4 Make use of resin.os.generateCacheName in os action 2014-12-02 11:30:17 -04:00
Juan Cruz Viotti
b89524c43b Implement os module 2014-12-02 11:28:49 -04:00
Juan Cruz Viotti
ccf92411fe Implemence pace based os download 2014-12-02 11:08:22 -04:00
Juan Cruz Viotti
0b078be0f3 Allow piped server requests 2014-12-02 10:57:47 -04:00
Juan Cruz Viotti
2911caf7f8 Remove unused helpers.constructRemoteUrl 2014-12-02 09:50:59 -04:00
Juan Cruz Viotti
d3df9bff1a Allow tracking progress of server requests 2014-12-01 13:28:57 -04:00
Juan Cruz Viotti
e52eb75ac8 Implement constructRemoteUrl helper function 2014-12-01 11:52:09 -04:00
Juan Cruz Viotti
141fa9be6d Fix and improve connection param parsing function 2014-12-01 11:41:32 -04:00
Juan Cruz Viotti
a4db6ce572 Add download url to config 2014-12-01 11:41:14 -04:00
Juan Cruz Viotti
34e93ebe60 Add os download related options 2014-12-01 11:40:58 -04:00
Juan Cruz Viotti
551202dd4e Implement InvalidCredentials error 2014-12-01 10:18:39 -04:00
Juan Cruz Viotti
e21c1588c9 Remove config urls abs url map 2014-12-01 10:13:35 -04:00
Juan Cruz Viotti
d3eac45955 Move all urls to config 2014-12-01 10:06:03 -04:00
Juan Cruz Viotti
db51ed9d1e Move authenticate url to config 2014-12-01 09:52:45 -04:00
Juan Cruz Viotti
d4b189f785 Move device logs pubnub event to config 2014-12-01 09:50:18 -04:00
Juan Cruz Viotti
8f13e9bf44 Implement log tail option 2014-11-28 20:51:08 -04:00
Juan Cruz Viotti
25af7a2231 Implement logs -n/--num 2014-11-28 20:18:59 -04:00
Juan Cruz Viotti
4702e7b563 Refactor valid UUID check into helpers 2014-11-28 15:36:03 -04:00
Juan Cruz Viotti
721ef8413a Implement logs command 2014-11-28 15:11:15 -04:00
Juan Cruz Viotti
1f4926bb6a Implement loadPluginsDirectory 2014-11-28 11:10:01 -04:00
Juan Cruz Viotti
1d18329c29 Rename loadPackage to loadPlugin 2014-11-28 10:40:17 -04:00
Juan Cruz Viotti
8bf8cff436 Implement pluginLoader.readPluginsDirectory() 2014-11-28 10:38:34 -04:00
Juan Cruz Viotti
a62ef744bc Implement pluginLoader.loadPackage 2014-11-27 12:14:13 -04:00
Juan Cruz Viotti
26f037d3c7 Don't use plugin loader for built in functionality 2014-11-27 11:26:59 -04:00
Juan Cruz Viotti
594a358bef Implement and make use of plugin loader (only in preferences for now) 2014-11-27 11:22:48 -04:00
Juan Cruz Viotti
a3c8a2fb27 Handle permissions errors with errors.handle 2014-11-27 10:07:59 -04:00
Juan Cruz Viotti
5e3d973725 Implement command permissions 2014-11-27 10:06:11 -04:00
Juan Cruz Viotti
507ff16050 Option based addOption/addCommand/addResource 2014-11-27 09:28:24 -04:00
Juan Cruz Viotti
a5791d080f Implement CLI addResource 2014-11-27 09:10:51 -04:00
Juan Cruz Viotti
86ecf5b1b6 Namespace actions with an actions object 2014-11-26 15:11:34 -04:00
Juan Cruz Viotti
7f01cae064 Implement resin/cli and decouple app.coffee from commander 2014-11-26 15:07:40 -04:00
Juan Cruz Viotti
cf4778f889 Move FsUtils inside resin/data 2014-11-26 14:22:01 -04:00
Juan Cruz Viotti
5b470f1a0a Use resin.errors.handle in app.coffee 2014-11-26 14:17:26 -04:00
Juan Cruz Viotti
debc017ba3 Make environment variables model callback based 2014-11-26 14:11:11 -04:00
Juan Cruz Viotti
fa83019945 Make device model callback based 2014-11-26 14:05:55 -04:00
Juan Cruz Viotti
213cab0480 Make application model callback based 2014-11-26 13:54:05 -04:00
Juan Cruz Viotti
9529e6c335 Move config to resin module 2014-11-26 13:42:05 -04:00
Juan Cruz Viotti
912ebf6752 Get rid of messages module 2014-11-26 13:35:01 -04:00
Juan Cruz Viotti
3db13f6329 Move patterns to resin/ui 2014-11-26 13:29:19 -04:00
Juan Cruz Viotti
67ade4bf12 Move widgets to resin/ui module 2014-11-26 13:26:01 -04:00
Juan Cruz Viotti
ce8b11004c Move table to widget module 2014-11-26 13:20:56 -04:00
Juan Cruz Viotti
bc11b305b2 Move device to resin module 2014-11-26 13:12:39 -04:00
Juan Cruz Viotti
ff07764b39 Move auth to resin module 2014-11-26 13:02:22 -04:00
Juan Cruz Viotti
64cb1520f6 Move data to resin module 2014-11-26 12:56:52 -04:00
Juan Cruz Viotti
1736d8a759 Move token to resin module 2014-11-26 12:42:10 -04:00
Juan Cruz Viotti
edcee1c9cf Move log and errors to resin module 2014-11-26 12:38:02 -04:00
Juan Cruz Viotti
8b81fbdbbd Move models to resin 2014-11-26 12:15:40 -04:00
Juan Cruz Viotti
698ddd168c Move server to resin module 2014-11-26 12:07:10 -04:00
Juan Cruz Viotti
af00bd1faf Improve error support 2014-11-26 11:39:58 -04:00
Juan Cruz Viotti
76e92fea22 Fix authHooks test suite 2014-11-26 09:19:02 -04:00
Juan Cruz Viotti
d4310bf970 Implement connection.parseConnectionParameters 2014-11-25 13:50:50 -04:00
Juan Cruz Viotti
ea13f7e11e Test failIfNotLoggedIn auth hook 2014-11-25 09:37:53 -04:00
Juan Cruz Viotti
a6099b227b Require internet connection before attempting to use server module 2014-11-25 09:02:50 -04:00
Juan Cruz Viotti
927b7bc0eb Make use of errors.NotFound 2014-11-24 14:48:16 -04:00
Juan Cruz Viotti
86548fc3d2 Fix typo in constructor 2014-11-24 14:41:16 -04:00
Juan Cruz Viotti
5549a2bd9e Make use of errors.handle() everywhere 2014-11-24 14:08:58 -04:00
Juan Cruz Viotti
90cb463390 Implement errors module 2014-11-24 14:08:51 -04:00
Juan Cruz Viotti
cbf7039fca Remove unnecessary fat arrow 2014-11-24 13:40:56 -04:00
Juan Cruz Viotti
e05b149a0e Return promise rejection to prevent Bluebird from complaining 2014-11-24 13:28:44 -04:00
Juan Cruz Viotti
1165113240 Prevent some undefined js errors 2014-11-24 13:27:15 -04:00