Commit Graph

406 Commits

Author SHA1 Message Date
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