Wykres commitów

575 Commity (a7c6d9b408689abb56fa284e857a8fba2ad66084)

Autor SHA1 Wiadomość Data
Chris McCormick 2dbc5d0233 Remove bare exception (linting fix). 2019-11-26 12:39:01 +08:00
Chris McCormick ede54d9563 Fixed further linting issues. 2019-11-26 12:35:11 +08:00
Chris McCormick 8882bb5f61 Fix flake8 issues. 2019-11-26 12:26:31 +08:00
Chris McCormick 9e5d56a4ca Guard against plugin modules containing errors. 2019-11-26 12:23:35 +08:00
Chris McCormick 480d285882 Guard against non-existent plugins dir. 2019-11-26 12:20:25 +08:00
Chris McCormick 5ac6ae2d1d Merge branch 'master' into plugins-master-merge
Conflicts:
	piku.py
2019-11-26 12:20:04 +08:00
Rui Carmo e22b2c1cb8 revert #149 2019-11-25 19:53:36 +00:00
Rui Carmo 250b1ef1e6 Fixes #149 2019-11-25 19:49:49 +00:00
Rui Carmo 54b6df5b47
Fix #150 2019-11-25 19:44:36 +00:00
Rui Carmo b8b9d38d52
Fix indenting 2019-11-25 18:49:21 +00:00
Rui Carmo 8048149bd5
Create cloud-init.yml
First stab at a cloud-init file for Azure/AWS/GCP
2019-11-25 18:47:46 +00:00
Jorge Senín e02b1acae8 Avoid install python2 each time at pre_task
Python2 check, miss a parenthesis for apt-get and update.
```
( /usr/bin/python --version 2>&1 | grep -c 'Python' > /dev/null ) || apt-get update && apt-get -y install python
```
becomes to
```
(( /usr/bin/python --version 2>&1 | grep -c 'Python' > /dev/null ) || apt-get update ) && apt-get -y install python
```
so `apt-get -y install python` ever is executed even Python2 it's present

then we need to put update and install together
```
( /usr/bin/python --version 2>&1 | grep -c 'Python' > /dev/null ) || ( apt-get  update && apt-get -y install python )
```
2019-11-24 11:34:04 +01:00
Jorge Senín ebeeb6824b Show a message when no apps installed
I think it is better to say that there is no app in the system instead of returning nothing
2019-11-24 03:22:18 +01:00
Rui Carmo 68351f56b8 Merge branch 'master' of github.com:piku/piku 2019-11-21 13:51:14 +00:00
Rui Carmo fefff34127 Add link to new roadmap 2019-11-21 13:51:10 +00:00
Rui Carmo b018a8b321
Fix typo 2019-11-21 13:39:22 +00:00
Rui Carmo 37b334509c move image to DESIGN. 2019-11-21 13:38:42 +00:00
Rui Carmo d60f4d44da Moved old text to prep for CONTRIBUTING and GOALS as per #134 2019-11-21 13:35:04 +00:00
Rui Carmo 288c8c5e7a Document current flake8 settings (discussed in #95) 2019-11-21 13:21:05 +00:00
dWiGhT 8ee8632782
doc: add badges to README
this is the start of adding badges to show the state and condition of the repo.

https://www.freecodecamp.org/news/how-to-use-badges-to-stop-feeling-like-a-noob-d4e6600d37d2/
2019-11-20 15:41:15 -08:00
Rui Carmo 56d4e8bd91 reinstate gzip_disable 2019-11-20 19:41:04 +00:00
Rui Carmo f689992e50 pyflake8 changes 2019-11-20 19:37:37 +00:00
Rui Carmo 135c771a1f Keep pyflake happy for now 2019-11-20 19:27:20 +00:00
Rui Carmo 173600aa13 Allow longer lines for inlining SSH entries 2019-11-20 19:25:58 +00:00
Rui Carmo 28ec78ad47 Remove Internet Explorer 6 gzip disable 2019-11-20 19:23:41 +00:00
Rui Carmo 2afa655f72
Update pylint.yml 2019-11-20 19:19:50 +00:00
Rui Carmo d647311878
Update pylint.yml 2019-11-20 19:15:38 +00:00
Rui Carmo 15e6a81cbf
Merge pull request #128 from jsenin/master
Do not process empty lines or commented at Procfile
2019-11-20 19:12:04 +00:00
Rui Carmo 8320b297e6
Update pylint.yml 2019-11-20 19:10:00 +00:00
Rui Carmo cb10116f79
Merge pull request #135 from chr15m/fix-http-socket-dup
Fix clashing HTTP ports in uwsgi deploy.
2019-11-20 19:05:43 +00:00
Rui Carmo 5523595a73
Merge branch 'master' into fix-http-socket-dup 2019-11-20 19:05:26 +00:00
Rui Carmo 2f8a573aa2
Update pylint.yml 2019-11-20 19:03:38 +00:00
Rui Carmo d01242eeab
Update pylint.yml 2019-11-20 19:01:20 +00:00
Rui Carmo 4480ca415e
Update pylint.yml 2019-11-20 19:00:58 +00:00
Rui Carmo 4108ae0f2c
Update pylint.yml 2019-11-20 18:58:36 +00:00
Rui Carmo 26cf27abde
Update pylint.yml 2019-11-20 18:56:37 +00:00
Rui Carmo b495a9e9bc
Update pylint.yml 2019-11-20 18:47:22 +00:00
Rui Carmo 9e3636c028
Update pylint.yml
switch to black
2019-11-20 18:44:44 +00:00
Rui Carmo 2f1c815512
Merge branch 'master' into master 2019-11-20 18:42:50 +00:00
Rui Carmo aac4f058d0
Create pylint.yml
Adds a GitHub Action to run pylint
2019-11-20 18:38:49 +00:00
dWiGhT bacd437b8a
Merge branch 'master' into cleanupimports 2019-11-20 10:11:23 -08:00
dWiGhT a93b471d67 build: lite cleanup of pylint results (#141) 2019-11-20 08:28:02 +00:00
dWiGhT 85c9e08bd1 build: ignore IntelliJ files 2019-11-19 15:49:14 -08:00
dWiGhT 30fda8e59b build: removed unused imports 2019-11-19 15:49:01 -08:00
Jorge Senín 93d291887a Extend cli commands with plugins
Added a search for plugins modules that contains a `def get_commands()` that returns a clic.Command object. This object is merged with others commands to populate the cli.

An example file that should be placed at `~/.piku/plugins/postgres/__init__.py`

```
import click

@click.group()
def postgres():
    """Postgres command plugin"""
    pass

@postgres.command("postgres:create")
@click.argument('name')
@click.argument('user')
@click.argument('password')
def postgres_create():
    """Postgres create a database"""
    pass

@postgres.command("postgres:drop")
@click.argument('name')
def postgres_drop():
    """Postgres drops a database"""
    pass

@postgres.command("postgres:import")
@click.argument('name')
def postgres_drop():
    """Postgres import a database"""
    pass

@postgres.command("postgres:dump")
@click.argument('name')
def postgres_drop():
    """Postgres dumps a database SQL"""
    pass

def cli_commands():
    return postgres
```
2019-11-19 23:54:04 +01:00
Chris McCormick 5ddb3619a2 Fix clashing HTTP ports in uwsgi deploy. #125 2019-11-19 17:10:13 +08:00
Jorge Senín 666f871bc9 Remove trailing spaces (#133) 2019-11-19 08:09:08 +00:00
Jorge Senín 7a3f89cfa5 Do not process empty lines or commented at Procfile 2019-11-19 08:34:41 +01:00
Jorge Senín 6f0468008a Add piku help command, and support sort and large arguments -h and --help (#131) 2019-11-18 21:33:01 +00:00
dWiGhT 0d9815fdcb improvement: `piku apps` marks running apps w/ * (#132)
* improvement: `piku apps` marks running apps w/ *

```
🍺 $ piku apps
*myapp1
 sample
*myapp2
```

* Update piku.py
2019-11-18 21:30:39 +00:00