Skip to content

Commit f0fbc1f

Browse files
committed
README, interface spec
0 parents  commit f0fbc1f

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Contributing
2+
3+
1. Fork it
4+
2. Create your feature branch (`git checkout -b my-new-feature`)
5+
3. Commit your changes (`git commit -am 'Add some feature'`)
6+
4. Push to the branch (`git push origin my-new-feature`)
7+
5. Create new Pull Request

LICENSE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2013 Jack Pearkes
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Tugboat
2+
3+
A command line tool for interacting with your [DigitalOcean](https://www.digitalocean.com/) droplets.
4+
5+
## Installation
6+
7+
gem install tugboat
8+
9+
## Configuration
10+
11+
$ tugboat authorize
12+
Note: You can get this stuff at digitalocean.com/api_access
13+
14+
Enter your client key: ...
15+
Enter your API Key: ...
16+
17+
Checking...done.
18+
19+
## Usage
20+
21+
### Retrieve a list of your droplets
22+
23+
$ tugboat list
24+
pearkes-admin-001 (region: 1, size: 64, image ID: 2676)
25+
pearkes-www-001 (region: 1, size: 64, image ID: 2561)
26+
pearkes-api-001 (region: 1, size: 64, image ID: 6321)
27+
28+
### SSH into a droplet
29+
30+
$ tugboat ssh admin
31+
Found droplet "pearkes-admin-001"
32+
Executing SSH...
33+
34+
### SSH into a droplet with multiple matches
35+
36+
$ tugboat ssh www
37+
Found multiple droplets:
38+
1) pearkes-www-001
39+
2) pearkes-www-002
40+
Enter droplet number: 2
41+
Executing SSH...
42+
43+
### Create a droplet
44+
45+
$ tugboat create -n pearkes-www-002 -s 64 -i 2676 -r 1
46+
Creating "pearkes-www-002" (region: 1, size: 64, image ID: 2676)...done.
47+
48+
49+
### Destroy a droplet
50+
51+
$ tugboat destroy admin
52+
Warning! Potentially destructive action. Please re-enter droplet name. "pearkes-admin-001": ...
53+
Destroying "pearkes-admin-001"...done.
54+
55+
### Restart a droplet
56+
57+
$ tugboat restart admin
58+
Restarting "pearkes-admin-001"...done.
59+
60+
### Shut down a droplet
61+
62+
$ tugboat halt admin
63+
Shutting down "pearkes-admin-001"...done.
64+
65+
### Snapshot a droplet
66+
67+
$ tugboat snapshot admin
68+
Queuing snapshot for "pearkes-admin-001"...done.
69+
70+
## Contributing
71+
72+
See the [contributing guide](CONTRIBUTING.md).
73+

0 commit comments

Comments
 (0)