karo 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of karo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +60 -2
- data/lib/karo/cli.rb +5 -0
- data/lib/karo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2255c51a7b206d835827f05834570580f2e97038
|
4
|
+
data.tar.gz: 62ba649834918a9db2bce06f6e6725abbe1147ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecb1950a47ec6f1abff78ff37f15dc6df8e8b3059805622b3492cb4a5e9e061186b8776943e770ceeedcd731eff5610d7271aa20f8b58a53f96a5f40cb1907be
|
7
|
+
data.tar.gz: 043dd14700e90d3fd12c47357bbe15394aa03b14d4b409d5ba9dd8e139fd4d5711111f005d29605a336b174b528d831bccc560d32e95fe6f536e9f25662b784a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,40 @@
|
|
1
|
-
#
|
1
|
+
# Karo [![Code Climate](https://codeclimate.com/github/rahult/karo.png)](https://codeclimate.com/github/rahult/karo) [![Dependency Status](https://gemnasium.com/rahult/karo.png)](https://gemnasium.com/rahult/karo) [![Gem Version](https://badge.fury.io/rb/karo.png)](http://badge.fury.io/rb/karo)
|
2
2
|
|
3
|
-
**Karo** is a
|
3
|
+
**Karo** is a command line companion for a rails application which makes performing routing commands locally and on the server easier.
|
4
|
+
|
5
|
+
## A few of things it can do (for rest please refer to ```karo help```)
|
6
|
+
|
7
|
+
```bash
|
8
|
+
karo db pull # Will sync the production MySQL database on to local machine
|
9
|
+
karo assets pull -e staging # Will sync the dragonfly assets from staging on to the local machine
|
10
|
+
karo log -f # Will tail the production log with -f argument
|
11
|
+
```
|
12
|
+
|
13
|
+
You can also write your custom commands
|
14
|
+
|
15
|
+
```bash
|
16
|
+
karo server {command} # Will try to find a command from .karo.yml or execute the one provided on the server
|
17
|
+
karo client {command} # Will try to find a command from .karo.yml or execute the one provided on the client
|
18
|
+
```
|
19
|
+
|
20
|
+
## Few Assumptions
|
21
|
+
|
22
|
+
- You have SSH access to your servers
|
23
|
+
- You have the following directory structure on your server
|
24
|
+
[deploy_to]
|
25
|
+
[deploy_to]/releases
|
26
|
+
[deploy_to]/releases/20080819001122
|
27
|
+
[deploy_to]/releases/...
|
28
|
+
[deploy_to]/shared
|
29
|
+
[deploy_to]/shared/config/database.yml
|
30
|
+
[deploy_to]/shared/log
|
31
|
+
[deploy_to]/shared/pids
|
32
|
+
[deploy_to]/shared/system
|
33
|
+
[deploy_to]/current -> [deploy_to]/releases/20100819001122
|
34
|
+
- You are using MySQL as your database server
|
35
|
+
- You are using Dragonfly to store your assets
|
36
|
+
|
37
|
+
I am working on supporting other databases and assets managers for future releases
|
4
38
|
|
5
39
|
## Installation
|
6
40
|
|
@@ -19,3 +53,27 @@ After updating your bundle, you can use Karo function from the command line
|
|
19
53
|
```bash
|
20
54
|
karo help
|
21
55
|
```
|
56
|
+
|
57
|
+
Default configuration file
|
58
|
+
|
59
|
+
```yml
|
60
|
+
production:
|
61
|
+
host: example.com
|
62
|
+
user: deploy
|
63
|
+
path: /data/app_name
|
64
|
+
commands:
|
65
|
+
server:
|
66
|
+
memory: watch vmstat -sSM
|
67
|
+
top_5_memory: ps aux | sort -nk +4 | tail
|
68
|
+
client:
|
69
|
+
deploy: cap production deploy
|
70
|
+
staging:
|
71
|
+
host: example.com
|
72
|
+
user: deploy
|
73
|
+
path: /data/app_name
|
74
|
+
commands:
|
75
|
+
server:
|
76
|
+
memory: vmstat -sSM
|
77
|
+
client:
|
78
|
+
deploy: ey deploy -e staging -r staging
|
79
|
+
```
|
data/lib/karo/cli.rb
CHANGED
@@ -85,6 +85,11 @@ module Karo
|
|
85
85
|
map clt: :client
|
86
86
|
map local: :client
|
87
87
|
|
88
|
+
desc "deploy", "(shortcut for > karo client deploy)"
|
89
|
+
def deploy(*extras)
|
90
|
+
invoke :client, ["deploy", extras]
|
91
|
+
end
|
92
|
+
|
88
93
|
desc "server [COMMAND]", "run any command within a given server environment"
|
89
94
|
method_option :tty, aliases: "-t", desc: "force pseudo-tty allocation",
|
90
95
|
type: :boolean, default: true
|
data/lib/karo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rahul Trikha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
version: '0'
|
189
189
|
requirements: []
|
190
190
|
rubyforge_project:
|
191
|
-
rubygems_version: 2.0.
|
191
|
+
rubygems_version: 2.0.3
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: SSH toolbox to make running logs, sync, cache commands easier for a given
|