karo 2.3.3 → 2.3.4
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 +10 -0
- data/README.md +12 -11
- data/lib/karo/cli.rb +10 -0
- data/lib/karo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd6cd3053afd3a77746aae662bdfc278244f9f6
|
4
|
+
data.tar.gz: 07267c303a943a821d030b0448e04f2db365c8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beb1c0ff512feaa49a5d40309cdac879960567feb67a62eccfa0e6160dead270bef3d6d5d3b8dd268d5ce8d6695f3c8c84a57f672aeedb087c513cedada2addc
|
7
|
+
data.tar.gz: 5b7a45d10b86a3d4c76ad6c4b6dcc16b60d3681f2dc8ae821743dc2c4e3a378c83ad8154a5d0da361b2d132e1deee03a78ae47f0237f71af6f0de59d49987624
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -10,6 +10,7 @@ karo db console # Will open MySQL console on the server
|
|
10
10
|
karo console # Will open Rails console on the server
|
11
11
|
karo assets pull -e staging # Will sync the dragonfly assets from staging on to the local machine
|
12
12
|
karo log -f # Will tail the production log with -f argument
|
13
|
+
karo vim app/models/user.rb # Will open the user.rb file on the server using vim for editing
|
13
14
|
```
|
14
15
|
|
15
16
|
You can also write your custom commands
|
@@ -22,17 +23,17 @@ karo client {command} # Will try to find a command from .karo.yml or execute the
|
|
22
23
|
## Few Assumptions
|
23
24
|
|
24
25
|
- You have SSH access to your servers
|
25
|
-
- You have the [Capistrano](https://github.com/capistrano/capistrano) deploy directory structure on your server
|
26
|
-
[deploy_to]
|
27
|
-
[deploy_to]/releases
|
28
|
-
[deploy_to]/releases/20080819001122
|
29
|
-
[deploy_to]/releases/...
|
30
|
-
[deploy_to]/shared
|
31
|
-
[deploy_to]/shared/config/database.yml
|
32
|
-
[deploy_to]/shared/log
|
33
|
-
[deploy_to]/shared/pids
|
34
|
-
[deploy_to]/shared/system
|
35
|
-
[deploy_to]/current -> [deploy_to]/releases/20100819001122
|
26
|
+
- You have the [Capistrano](https://github.com/capistrano/capistrano) deploy directory structure on your server
|
27
|
+
[deploy_to]
|
28
|
+
[deploy_to]/releases
|
29
|
+
[deploy_to]/releases/20080819001122
|
30
|
+
[deploy_to]/releases/...
|
31
|
+
[deploy_to]/shared
|
32
|
+
[deploy_to]/shared/config/database.yml
|
33
|
+
[deploy_to]/shared/log
|
34
|
+
[deploy_to]/shared/pids
|
35
|
+
[deploy_to]/shared/system
|
36
|
+
[deploy_to]/current -> [deploy_to]/releases/20100819001122
|
36
37
|
- You are using MySQL as your database server
|
37
38
|
- You are using Dragonfly to store your assets
|
38
39
|
|
data/lib/karo/cli.rb
CHANGED
@@ -180,6 +180,16 @@ module Karo
|
|
180
180
|
invoke :server, [cmd, extras]
|
181
181
|
end
|
182
182
|
|
183
|
+
desc "vim", "open a given file or folder on the server using VIM"
|
184
|
+
def vim(command="", *extras)
|
185
|
+
configuration = Config.load_configuration(options)
|
186
|
+
|
187
|
+
path = File.join(configuration["path"], "current", command)
|
188
|
+
cmd = "vim scp://#{configuration["user"]}@#{configuration["host"]}/#{path}"
|
189
|
+
|
190
|
+
invoke :client, [cmd, extras]
|
191
|
+
end
|
192
|
+
|
183
193
|
desc "log", "displays server log for a given environment"
|
184
194
|
class_option :continous, type: :boolean, lazy_default: true, aliases: "-f", desc: "The -f option causes tail to not stop when end of file is reached, but rather to wait for additional data to be appended to the input."
|
185
195
|
def log(*extras)
|
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.3.
|
4
|
+
version: 2.3.4
|
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-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|