Skip to content

Commit 4aa0d45

Browse files
authored
Merge pull request #7 from grayfolk/dev
Dev
2 parents 94e694d + 2628a47 commit 4aa0d45

8 files changed

Lines changed: 165 additions & 169 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@ fabric.properties
7979
/accounts.json
8080
/.php-cs-fixer.cache
8181
/tmp
82+
/do

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Digitalocean API shell
2+
Console utility for working with DigitalOcean API
3+
4+
### Requirements
5+
* PHP 7.4+
6+
* [Composer](https://getcomposer.org)
7+
* PHP [Curl](https://www.php.net/manual/book.curl.php) extension
8+
* PHP [GMP](https://www.php.net/manual/book.gmp.php) extension
9+
* PHP [JSON](https://www.php.net/manual/book.json.php) extension
10+
11+
### Installation
12+
* Run `composer create-project grayfolk/digitalocean-api-shell`.
13+
* Go to `digitalocean-api-shell` folder and edit `accounts.json`. This is a simple [JSON](https://www.json.org) file with `"username" : "API Key"` records. You can use whatever name is convenient for you (but it shoud be unique) and real DigitalOcean API key. You can obtain API key in your [DigitalOcean Account - API - Personal access tokens - Generate New Token](https://cloud.digitalocean.com/account/api/tokens/new).
14+
15+
### Running
16+
Go to `digitalocean-api-shell` folder and run `./do`.

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"email": "grayfolk@gmail.com"
2525
}
2626
],
27-
"minimum-stability": "dev",
27+
"minimum-stability": "stable",
2828
"autoload": {
2929
"psr-4": {
3030
"App\\": "src/"
@@ -35,7 +35,8 @@
3535
},
3636
"scripts": {
3737
"post-install-cmd": [
38-
"chmod +x do.sh",
38+
"ln -sf src/digitalocean-api-shell.sh do",
39+
"chmod +x do",
3940
"mkdir -m=777 -p tmp",
4041
"cp accounts.json.example accounts.json"
4142
],

0 commit comments

Comments
 (0)