Commit Graph

145 Commits

Author SHA1 Message Date
Dave Eddy
de2a462f16 triton info cleanup, fixes #8 2015-09-03 18:24:39 -04:00
Dave Eddy
edcc2a52ed Merge pull request #10 from joyent/dave.eddy-1441318327
use mkdirp to create cache directories
2015-09-03 18:19:18 -04:00
Dave Eddy
f3aad05fc9 use mkdirp to create cache directories 2015-09-03 18:12:08 -04:00
Dave Eddy
e48395d446 add common.getCliTableOptions for tabula
- common tabula options managed in "common"
- "datacenters" and "services" pass raw data with -j
2015-09-03 18:09:21 -04:00
Trent Mick
19ede6e489 joyent/node-triton#7 "triton create" could better handle missing package argument 2015-09-03 10:19:02 -07:00
Dave Eddy
804fe155b9 sprintf was a lie - use format everywhere 2015-09-03 00:02:40 -04:00
Dave Eddy
716976efa8 pass create data in post body 2015-09-03 00:02:09 -04:00
Dave Eddy
1cc87edb0f per-profile cache directory using account+url slug 2015-09-02 23:48:14 -04:00
Dave Eddy
da8e13b45e more assertions in common, ensure tests run with assertions 2015-09-02 23:30:07 -04:00
Dave Eddy
b6e4c06742 tabula changes
- "datacenters" and "services" both use tabula
- comman tabula options moved to common
2015-09-02 23:24:08 -04:00
Dave Eddy
782c82faa7 remove executable bits on non-executable files 2015-09-02 16:33:30 -04:00
Dave Eddy
c3a91411f9 lots of unit tests 2015-09-02 15:38:27 -04:00
Trent Mick
018c46ef43 'make check' clean 2015-09-02 10:47:06 -07:00
Trent Mick
4064b93c8e joyent/node-triton#5 show usage info on usage errors 2015-09-02 01:04:20 -07:00
Trent Mick
58a7c9977b joyent/node-triton#4 triton networks/network to support shortId as well and to include fabric
flag
2015-09-02 00:03:17 -07:00
Dave Eddy
ae8a19d568 quick jsstyle cleanup 2015-09-01 15:03:52 -04:00
Dave Eddy
0d53e878e9 javascript lint cleanup 2015-09-01 14:51:02 -04:00
Dave Eddy
d76535b4d2 negative sizes support, add more tests 2015-09-01 13:47:35 -04:00
Trent Mick
12c9cb64a6 Factor out spinner to prep for using it for 'triton wait'.
Also refactor 'triton wait' for debuggability and to avoid possible
multiple calls to the callback.
2015-09-01 10:44:34 -07:00
Trent Mick
9241f90ccf 'make check-jsl' clean 2015-09-01 10:44:34 -07:00
Dave Eddy
42f0ee5a41 fix bug in humanSizeFromBytes 2015-09-01 13:44:10 -04:00
Dave Eddy
c4f85db8d8 support for triton ssh user@id 2015-09-01 10:16:42 -04:00
Trent Mick
333c47ae26 a start at a test framework 2015-09-01 00:31:00 -07:00
Trent Mick
3c90b321fd a very small start at 'make check' clean 2015-08-31 16:56:26 -07:00
Trent Mick
fd0fa369ab triton wait: change signature to take states as an arg, and multiple separate instance name/id args 2015-08-31 15:16:58 -07:00
Trent Mick
022471afa7 triton packages: make --human the default, use -p to override. Nicer, some what kludged sorting by group and memory 2015-08-31 15:16:58 -07:00
Dave Eddy
016e2d94f0 unnecessary call to common function 2015-08-31 17:14:48 -04:00
Trent Mick
dfc3e013b6 'triton insts' default output changes
Change default short and --long output of 'triton insts' somewhat
per feedback from Angela.

I also dropped validFields and turned on dottedLookup so you can do
stuff like:
    triton insts -o shortid,name,tags.foo,metadata.root_authorized_keys
2015-08-31 13:11:34 -07:00
Trent Mick
e145090c79 Fix handling of SDC_TESTING envvar (really really this time) 2015-08-31 12:31:06 -07:00
Trent Mick
1b2ed0758e Fix handling of SDC_TESTING envvar 2015-08-31 12:23:20 -07:00
Trent Mick
5e3efa02a6 'triton packages --human' for M/G/T units on sizes 2015-08-31 12:13:17 -07:00
Trent Mick
233e8ee784 reduce mkdir noise in log for every 'triton ...' run
E.g.:
    $ triton -v inst 1c7f40f6-a253-49f3-94d6-8f0656440696 2>&1 | bunyan
    [2015-08-31T17:57:02.682Z]  INFO: triton/24726 on danger0.local (/Users/trentm/joy/node-triton/lib/cli.js:188): failed to make dir /Users/trentm/.triton (err.code=EEXIST)
        Error: EEXIST, file already exists '/Users/trentm/.triton'
            at Object.fs.mkdirSync (fs.js:654:18)
            at /Users/trentm/joy/node-triton/lib/cli.js:186:24
            at Array.forEach (native)
            at CLI.triton (/Users/trentm/joy/node-triton/lib/cli.js:184:29)
            at CLI.do_instance (/Users/trentm/joy/node-triton/lib/do_instance.js:16:9)
            at CLI.dispatch (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:664:13)
            at /Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:425:18
            at CLI.init (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:477:5)
            at CLI.init (/Users/trentm/joy/node-triton/lib/cli.js:221:26)
            at CLI.main (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:404:10)
    [2015-08-31T17:57:02.684Z]  INFO: triton/24726 on danger0.local (/Users/trentm/joy/node-triton/lib/cli.js:188): failed to make dir /Users/trentm/.triton/cache (err.code=EEXIST)
        Error: EEXIST, file already exists '/Users/trentm/.triton/cache'
            at Object.fs.mkdirSync (fs.js:654:18)
            at /Users/trentm/joy/node-triton/lib/cli.js:186:24
            at Array.forEach (native)
            at CLI.triton (/Users/trentm/joy/node-triton/lib/cli.js:184:29)
            at CLI.do_instance (/Users/trentm/joy/node-triton/lib/do_instance.js:16:9)
            at CLI.dispatch (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:664:13)
            at /Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:425:18
            at CLI.init (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:477:5)
            at CLI.init (/Users/trentm/joy/node-triton/lib/cli.js:221:26)
            at CLI.main (/Users/trentm/joy/node-triton/node_modules/cmdln/lib/cmdln.js:404:10)
    ...
2015-08-31 11:16:58 -07:00
Trent Mick
786ec9771c fix error in using a full UUID for 'triton inst UUID' and others 2015-08-31 11:14:14 -07:00
Trent Mick
92ad1af94e shuffle cmd order in 'triton help' output. 'info' is a nice one to have first 2015-08-31 11:14:07 -07:00
Trent Mick
da566100ab some clarifying help docs on 'triton wait' 2015-08-31 11:13:39 -07:00
Trent Mick
9e3df02a5e shortid support for instances; --url,--account et al top-level options 2015-08-26 17:22:02 -07:00
Dave Eddy
5b60fffc04 whoops 2015-08-26 20:08:52 -04:00
Dave Eddy
0ccda0af10 add listDatacenters 2015-08-26 19:59:28 -04:00
Dave Eddy
769e9bbe2b listServices 2015-08-26 19:56:18 -04:00
Trent Mick
16c3747605 smooth bigspinner 2015-08-26 15:01:54 -07:00
Dave Eddy
83b1cf188f do_network 2015-08-26 17:09:50 -04:00
Dave Eddy
f11bf0c247 jsonStream should actually stream 2015-08-26 16:53:23 -04:00
Dave Eddy
ffb0a935a3 use wrapper functions 2015-08-26 16:44:11 -04:00
Dave Eddy
d2ce855a69 do_networks 2015-08-26 16:40:50 -04:00
Dave Eddy
835e1895bf output state changes with "wait" 2015-08-26 16:15:31 -04:00
Dave Eddy
9b57df6962 add wait-instance 2015-08-26 15:16:01 -04:00
Dave Eddy
532cead66f allow multiple filters to instances and packages 2015-08-26 14:03:22 -04:00
Trent Mick
0cfa83dedc fix 'triton create -w' that I broke recently 2015-08-26 10:13:09 -07:00
Dave Eddy
20aea1de10 whoops 2015-08-26 13:05:50 -04:00
Trent Mick
d5e5b81ac3 shortid by default for 'triton packages' 2015-08-26 10:02:01 -07:00
Dave Eddy
83fbcc129c weeks and minutes cleanup 2015-08-26 13:00:01 -04:00
Dave Eddy
a5213658fa config, cache images 2015-08-26 12:59:12 -04:00
Trent Mick
d6ac9fed33 triton create --dry-run 2015-08-26 09:36:28 -07:00
Dave Eddy
e61c6099b3 combine delete with start/stop/reboot 2015-08-26 12:18:40 -04:00
Dave Eddy
e2edbb3215 better bessages for start/stop/reboot/delete 2015-08-26 12:18:24 -04:00
Trent Mick
1d0fa26633 shortid by default for 'triton images', works for 'triton image SHORTID', 'triton create ...' 2015-08-26 09:15:17 -07:00
Dave Eddy
1d6a8178bd style 2015-08-26 02:00:26 -04:00
Dave Eddy
40c710d601 add output to start/stop/reboot/delete 2015-08-26 01:57:27 -04:00
Dave Eddy
e9cf0b37eb keys stream 2015-08-26 01:32:05 -04:00
Dave Eddy
b0b9eb9249 add delete 2015-08-26 01:25:26 -04:00
Dave Eddy
b2105ca41f add triton keys 2015-08-26 00:40:32 -04:00
Trent Mick
ba5e4d0af4 line up 'triton' help output better 2015-08-25 21:34:47 -07:00
Trent Mick
d255a1c2a9 f*#k 250k from pretty-bytes 2015-08-25 21:27:59 -07:00
Dave Eddy
0c7899cff9 fix copy+paste 2015-08-26 00:19:22 -04:00
Dave Eddy
6bd918eb81 do_info 2015-08-26 00:16:41 -04:00
Trent Mick
3bd22281e1 'triton image NAME', 'triton package NAME' 2015-08-25 21:06:27 -07:00
Trent Mick
2c4b41d91b fix help for 'triton create --name' 2015-08-25 20:59:35 -07:00
Trent Mick
0d4e93208c first pass at 'triton create' 2015-08-25 20:53:53 -07:00
Dave Eddy
15ca8ecc32 add triton account and touch up instance 2015-08-25 23:44:08 -04:00
Dave Eddy
a8d8d638ec do_ssh 2015-08-25 23:25:00 -04:00
Dave Eddy
463be10e2d add start/stop/restart and waitForMachineState 2015-08-25 21:46:14 -04:00
Dave Eddy
02305407a8 add start, stop, reboot 2015-08-25 21:09:32 -04:00
Dave Eddy
b5f9cbe054 add instance (alias and uuid) 2015-08-25 20:27:46 -04:00
Dave Eddy
f2dee08b46 add ago, fix bug 2015-08-25 20:00:50 -04:00
Dave Eddy
014e63a331 insts 2015-08-25 19:53:42 -04:00
Dave Eddy
eaf93e619b triton instances 2015-08-25 19:46:14 -04:00
Trent Mick
23fc9d4b3f some aliases; update TODO 2015-08-25 16:19:19 -07:00
Trent Mick
e01babc05e a quick 'triton package ID'; make 'cloudapi' command hidden from help output 2015-08-25 16:12:35 -07:00
Trent Mick
0987881887 'triton image ID', update TODO.txt 2015-08-25 15:47:29 -07:00
Dave Eddy
7afaadbd29 add packages, remove tabulate, put stuff in common 2015-08-25 18:30:25 -04:00
Trent Mick
8ff2fcb53c s/vms/instances/ 2015-08-25 15:15:02 -07:00
Trent Mick
4d21d9d889 move existing cmmands out to do_foo.js files 2015-08-25 15:10:13 -07:00
Trent Mick
6b3ea63571 triton images 2015-08-25 14:25:30 -07:00
Trent Mick
8f7fa3ac90 forgot to add 2015-08-25 13:13:54 -07:00
Trent Mick
d694f0ba19 wire up Triton class and cloudapi client 2015-08-25 13:11:40 -07:00
Trent Mick
1f123975ae update cmdln, move 'profile' command out to separate file 2015-08-25 12:14:16 -07:00
Trent Mick
dfca3e0ace unfinished and broken work :) 2015-07-25 22:47:45 -07:00
Lloyd Dewolf
1882dbf18e joyentcloud.com is deprecated, use joyent.com.
- JPC-1754.
2015-05-18 14:07:45 -07:00
Trent Mick
8cb5138f9e switch over to cloudapi2 (drop node-smartdc piggybacking); prefer 'user' to 'account' in APIs (a la node-manta) 2014-02-19 19:52:58 -08:00
Trent Mick
d64ea56308 renaming to 'sdc' 2014-02-19 19:49:49 -08:00
Trent Mick
d10b13cbfa rename to 'sdc' 2014-02-12 12:22:08 -08:00
Trent Mick
5842875027 event-y jc.listMachines 2014-02-08 00:15:26 -08:00
Trent Mick
67b170e68f '-p PROFILE' option; ~/.joyentcloudconfig.json config file name 2014-02-07 18:23:18 -08:00
Trent Mick
5b2e74d09f joyentcloud name picked 2014-02-07 16:49:07 -08:00
Trent Mick
120f3198cf first commit 2014-02-07 13:21:24 -08:00