Commit Graph

1746 Commits

Author SHA1 Message Date
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
Juan Cruz Viotti
12fc2e3bfb Table: Prevent map from being called if contents is undefined 2014-11-24 13:18:35 -04:00
Juan Cruz Viotti
b9d5b0fd59 Implement env:rm command 2014-11-24 13:00:36 -04:00
Juan Cruz Viotti
7988b0cbbe Allow increasing verbosity for envs command 2014-11-24 12:43:37 -04:00
Juan Cruz Viotti
a8a78f0749 Implement envs command 2014-11-24 12:12:12 -04:00
Juan Cruz Viotti
79f7d23f35 Move /blink to config 2014-11-24 11:40:51 -04:00
Juan Cruz Viotti
f0e25589cd Add non interactive support for app:create 2014-11-24 10:56:03 -04:00
Juan Cruz Viotti
f4ad73d2f8 Implement app:create command (interacitivy only for now) 2014-11-24 10:46:33 -04:00
Juan Cruz Viotti
f8e6894ea0 Fix bug that caused request body not being sent 2014-11-24 10:40:12 -04:00
Juan Cruz Viotti
b90b803fcb Return device name if passing a display name to getDisplayName() 2014-11-24 09:09:39 -04:00
Juan Cruz Viotti
b9d1626fe1 Improve device module with required functionality 2014-11-24 09:03:02 -04:00
Juan Cruz Viotti
77e59cf7b9 Improve device.getSupportedDevices() to return valid slugs 2014-11-24 08:54:35 -04:00
Juan Cruz Viotti
51c6a8b4c2 Implement select widget 2014-11-24 08:45:15 -04:00
Juan Cruz Viotti
8ee2568144 Implement device.getSupportedDevices() 2014-11-24 08:25:45 -04:00
Juan Cruz Viotti
f56cd8162c Implement device:identify command 2014-11-21 14:21:47 -04:00
Juan Cruz Viotti
982c18a900 Add UUID to table KEY_DISPLAY_MAP 2014-11-21 14:20:43 -04:00
Juan Cruz Viotti
34b0c7d783 Removeu unneeded dependency 2014-11-21 13:57:51 -04:00
Juan Cruz Viotti
29054bedf1 Implement key:rm command 2014-11-21 13:56:11 -04:00
Juan Cruz Viotti
832cbf89ff Implement device rm command 2014-11-21 13:23:29 -04:00
Juan Cruz Viotti
a853c0418a Add -q|--quiet global option 2014-11-21 12:20:37 -04:00
Juan Cruz Viotti
d46cf4aced Make use of new log module everywhere 2014-11-21 11:40:37 -04:00
Juan Cruz Viotti
aa2d0e70ca Implement log module 2014-11-21 11:37:23 -04:00
Juan Cruz Viotti
fed63fd178 Omit confirmation interactivity with -y/--yes 2014-11-21 10:44:48 -04:00
Juan Cruz Viotti
0697510f38 Refactor app:rm with async 2014-11-21 10:12:03 -04:00
Juan Cruz Viotti
37c68118db Implement app rm command 2014-11-21 09:43:03 -04:00
Juan Cruz Viotti
1c1e8b375e Use packageJSON directly instead of creating version action 2014-11-21 09:30:29 -04:00
Juan Cruz Viotti
b53bc060a3 Revert back to commander 2014-11-21 09:23:02 -04:00
Juan Cruz Viotti
4b20ba435d Implement key info command 2014-11-20 14:00:39 -04:00
Juan Cruz Viotti
5bbbc93d80 Implement helpers module with formatLongString() 2014-11-20 13:53:10 -04:00
Juan Cruz Viotti
c4bb275923 Implement key list command 2014-11-20 13:03:23 -04:00
Juan Cruz Viotti
a189e21c30 Restart URL TODO 2014-11-20 12:54:43 -04:00
Juan Cruz Viotti
322fed866d Test that server can handle a relative as well as an absolute url 2014-11-20 12:33:07 -04:00
Juan Cruz Viotti
574d612624 Implement app restart command 2014-11-20 12:24:39 -04:00
Juan Cruz Viotti
e1a63fb548 Implement version module 2014-11-20 12:13:59 -04:00
Juan Cruz Viotti
ee0fc8206f Make use of yargs.showHelp() instead of yargs.help(), as the latter uses
stderr by default
2014-11-20 12:11:01 -04:00
Juan Cruz Viotti
d6c8d77ceb Update areFunctionsEqual comment 2014-11-20 12:07:03 -04:00
Juan Cruz Viotti
91567cb5c7 Make run() print help if no matches 2014-11-20 12:05:50 -04:00
Juan Cruz Viotti
14459e1d09 Re enable all commands with new Yargs Command plugin 2014-11-20 11:57:53 -04:00
Juan Cruz Viotti
7610fe87cc Implement Yargs Command plugin 2014-11-20 11:50:58 -04:00
Juan Cruz Viotti
f1a76db5f5 Show Is Online information in devices command 2014-11-19 15:18:15 -04:00
Juan Cruz Viotti
3f1bcf3f02 Improve devices table ordering 2014-11-19 15:01:27 -04:00
Juan Cruz Viotti
be01094463 Fix ID -> Id ordering bug 2014-11-19 14:57:30 -04:00
Juan Cruz Viotti
34346dd3d0 Refactor table utilities into tableHelpers 2014-11-19 14:25:09 -04:00
Juan Cruz Viotti
55fa8435bb Implement devices command 2014-11-19 13:38:15 -04:00
Juan Cruz Viotti
e0032c090f Catch errors from applicationModel.getAll() 2014-11-19 12:15:39 -04:00
Juan Cruz Viotti
7dc5915db5 Remove unused dependencies 2014-11-19 12:14:34 -04:00
Juan Cruz Viotti
9130281862 Extend table module to handle formatting 2014-11-19 12:12:08 -04:00
Juan Cruz Viotti
e0448357df Implement table.horizontal() 2014-11-19 10:42:18 -04:00
Juan Cruz Viotti
26c69d183d Make sure table.prepareObject() doesn't removes non empty arrays 2014-11-19 10:29:59 -04:00
Juan Cruz Viotti
e390efd46e Implement table module 2014-11-19 10:20:36 -04:00
Juan Cruz Viotti
77d84103f6 Implement app info action 2014-11-19 09:23:40 -04:00
Juan Cruz Viotti
3015af3aeb Fix hook arguments issue 2014-11-19 09:14:40 -04:00
Juan Cruz Viotti
98f4dc8e19 Require login before opening preferences 2014-11-19 09:05:26 -04:00
Juan Cruz Viotti
47a1e16dab Implement preferences module 2014-11-19 08:59:17 -04:00
Juan Cruz Viotti
76194c7d46 Use getDisplayName() in apps action 2014-11-19 08:51:42 -04:00
Juan Cruz Viotti
d77e671648 Return unknown if no matches in device.getDisplayName() 2014-11-19 08:50:11 -04:00
Juan Cruz Viotti
f0e1effc05 Implement device module with getDisplayName() 2014-11-19 08:45:56 -04:00
Juan Cruz Viotti
89ec171a3d Improve apps printing with cliff 2014-11-18 14:51:05 -04:00
Juan Cruz Viotti
8777bb9536 Make use of authHooks in actions 2014-11-18 12:37:01 -04:00
Juan Cruz Viotti
8bdd3b697a Implement authHooks module 2014-11-18 12:36:43 -04:00
Juan Cruz Viotti
a0c743d771 Implement messages module 2014-11-18 12:36:33 -04:00
Juan Cruz Viotti
5109bba302 Move TODO to a better place 2014-11-18 12:20:37 -04:00
Juan Cruz Viotti
24f50fa5ec Add optional interactivity to login command 2014-11-18 12:15:40 -04:00
Juan Cruz Viotti
275eed82f0 Implement widgets module 2014-11-18 12:14:48 -04:00
Juan Cruz Viotti
53c25412c3 Make auth.parseCredentials async 2014-11-18 12:11:20 -04:00
Juan Cruz Viotti
d671832b5a Implement logout command 2014-11-18 11:48:05 -04:00
Juan Cruz Viotti
c41b28d4f0 Organise action requires close to their use in app.coffee 2014-11-18 11:40:12 -04:00
Juan Cruz Viotti
5c53829812 Implement signup command 2014-11-18 11:37:29 -04:00
Juan Cruz Viotti
612bb5e605 Basic test suite for Canvas 2014-11-18 11:15:47 -04:00
Juan Cruz Viotti
719c8d199d Remove server facade duplication 2014-11-18 10:33:24 -04:00
Juan Cruz Viotti
eee13418b9 Delete obsolete comment 2014-11-18 10:13:58 -04:00
Juan Cruz Viotti
6afdd0e48a Make use of new ApplicationModel in apps list action 2014-11-18 10:12:35 -04:00
Juan Cruz Viotti
e4b0f3772b Implement ApplicationModel's getAll function 2014-11-18 10:11:18 -04:00
Juan Cruz Viotti
e18bc83285 Integrat resin-platform-api 2014-11-18 10:11:07 -04:00
Juan Cruz Viotti
6da7290d73 Use gzip by default in server 2014-11-18 10:05:38 -04:00
Juan Cruz Viotti
e6570efbaf Simplify header assignment in server.request 2014-11-18 10:04:26 -04:00
Juan Cruz Viotti
7524a0efa8 Option based server.request() 2014-11-18 09:59:19 -04:00
Juan Cruz Viotti
9e0940063e Use built-in url module instead of url-join 2014-11-18 09:19:20 -04:00
Juan Cruz Viotti
2fd2b702ae Rename config.baseUrl to config.remoteUrl 2014-11-18 08:53:07 -04:00
Juan Cruz Viotti
d0cc3e54ad Create actions submodule to clean app a bit 2014-11-18 08:41:13 -04:00
Juan Cruz Viotti
2b8313da74 Rename interface as simply app.coffee 2014-11-18 08:35:50 -04:00
Juan Cruz Viotti
c753e1b41b Move auth outside of cli-modules 2014-11-18 08:34:40 -04:00
Juan Cruz Viotti
69dbd49444 Implement simple interface module 2014-11-17 15:48:26 -04:00
Juan Cruz Viotti
8df43575d0 Correctly reference home directory 2014-11-17 15:40:16 -04:00
Juan Cruz Viotti
3c3cb3e850 Create prefix directory when using data.prefix.set 2014-11-17 15:32:35 -04:00
Juan Cruz Viotti
11998a63cd Make data.prefix.set() async 2014-11-17 15:20:19 -04:00
Juan Cruz Viotti
5eeb4e04ee Remove unneeded logErrorOrContinue 2014-11-17 15:13:31 -04:00
Juan Cruz Viotti
fa47ad1201 Implement handy logErrorOrContinue 2014-11-17 14:55:36 -04:00
Juan Cruz Viotti
798a3ded61 Improve parseCredentials error message 2014-11-17 14:54:20 -04:00
Juan Cruz Viotti
b0fe4f41c1 Implement auth.parseCredentials() 2014-11-17 14:40:32 -04:00
Juan Cruz Viotti
d9bfe96cb5 Pass null as first argument for consistency 2014-11-14 15:50:29 -04:00
Juan Cruz Viotti
93b3f90e92 Remove done TODO 2014-11-14 15:49:35 -04:00
Juan Cruz Viotti
58cc0be0c9 Cleanup tests 2014-11-14 15:48:37 -04:00
Juan Cruz Viotti
8143fa3ab3 Update tests that assume saveToken returned the token as the second
parameter
2014-11-14 15:37:55 -04:00
Juan Cruz Viotti
b0dde8104f Pass undefined directly on data.get when key doesn't exists
To prevent confusing async
2014-11-14 15:26:25 -04:00
Juan Cruz Viotti
a4a9ebf0bb Fix undefined callback issue 2014-11-14 15:18:08 -04:00
Juan Cruz Viotti
48d39a39f8 Reorder server unit test to get more meaningful results 2014-11-14 15:04:47 -04:00
Juan Cruz Viotti
15620145eb Make data module return undefined if key is not found 2014-11-14 14:56:52 -04:00
Juan Cruz Viotti
14bacbc4a4 Make token fs based 2014-11-14 14:28:58 -04:00
Juan Cruz Viotti
e288d3e85f Implement data.has() 2014-11-14 13:34:04 -04:00
Juan Cruz Viotti
d83e269f20 Implement data.remove() 2014-11-14 13:21:56 -04:00
Juan Cruz Viotti
86b3489a48 Implement fsUtils.isDirectory() helper 2014-11-14 12:58:05 -04:00
Juan Cruz Viotti
aef90a18e8 Use staging instead of alpha for now 2014-11-14 11:54:03 -04:00
Juan Cruz Viotti
b47adaefa4 Make sure server response body is parsed 2014-11-14 11:53:46 -04:00
Juan Cruz Viotti
97d778634d Implement Authorization header support in server module 2014-11-14 11:05:30 -04:00
Juan Cruz Viotti
58300acb77 Implement Auth module 2014-11-14 09:51:59 -04:00
Juan Cruz Viotti
5d6d2f0511 Convert Token module into callback based 2014-11-07 14:51:54 -04:00
Juan Cruz Viotti
3f5da39990 Add TODO for fsUtils.isValidPath() 2014-11-07 14:17:37 -04:00
Juan Cruz Viotti
cad1d5764b Remove unused fsUtils.isFile() 2014-11-07 14:17:05 -04:00
Juan Cruz Viotti
f00691529a Implement Data module 2014-11-07 14:15:59 -04:00
Juan Cruz Viotti
453d1bbd7b Add colon after each module spec title 2014-11-07 12:43:10 -04:00
Juan Cruz Viotti
64e66e229f Implement DataPrefix module 2014-11-07 12:42:02 -04:00
Juan Cruz Viotti
afe438ff82 Don't not send an error on isFile, even when the file doesn't exists 2014-11-07 12:10:18 -04:00
Juan Cruz Viotti
89bb0d0b21 Implement fsUtils module 2014-11-07 11:21:48 -04:00
Juan Cruz Viotti
41d73eaf98 Implement precarious token persistence mechanism 2014-10-31 15:19:16 -04:00
Juan Cruz Viotti
463ed6473b Implement basic Auth module that fetches a token 2014-10-31 14:47:18 -04:00
Juan Cruz Viotti
b52d1ccb6d Throw error if serve response status code is higher or equal than 400 2014-10-31 13:25:02 -04:00
Juan Cruz Viotti
62fc40cd4b Implement Server module 2014-10-31 11:59:23 -04:00