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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63ca7082a6e2718a8c2c027623a794191a5fee07
4
- data.tar.gz: 250465beeecb6d0bd96c02fe51823c706ce0ca3e
3
+ metadata.gz: 2255c51a7b206d835827f05834570580f2e97038
4
+ data.tar.gz: 62ba649834918a9db2bce06f6e6725abbe1147ac
5
5
  SHA512:
6
- metadata.gz: ea774911562aa8dc3e2c7a32ef2acdd9783527e9bdc7935dfd71c9a89acffd2631a93d59bc670aa7bc1330b11bb9ae8a281da3212a867bd644056617f3a7c0ee
7
- data.tar.gz: 9399116b443b49488c23627aec7124ad2ffb2bbc007285c85fad46372124502d6403b677897bd27049ed11d5de02f52054fe343e0e7fed77a7411ec3e799097e
6
+ metadata.gz: ecb1950a47ec6f1abff78ff37f15dc6df8e8b3059805622b3492cb4a5e9e061186b8776943e770ceeedcd731eff5610d7271aa20f8b58a53f96a5f40cb1907be
7
+ data.tar.gz: 043dd14700e90d3fd12c47357bbe15394aa03b14d4b409d5ba9dd8e139fd4d5711111f005d29605a336b174b528d831bccc560d32e95fe6f536e9f25662b784a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.2.1
4
+
5
+ ### Features
6
+
7
+ - Added a shortcut for `karo client deploy` -> `karo deploy`
8
+
3
9
  ## v2.2.0
4
10
 
5
11
  ### Features
data/README.md CHANGED
@@ -1,6 +1,40 @@
1
- # Getting Started [![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)
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 commandline companion for a rails application which makes db, assets syncs across multiple rails servers easier while development
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
@@ -1,3 +1,3 @@
1
1
  module Karo
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
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.0
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-06 00:00:00.000000000 Z
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.2
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