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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3903cb06dbe0a743924303060c3012d5fa21fd3
4
- data.tar.gz: 39ee2470d41ac2701311b82f1fd980d5c7cdb008
3
+ metadata.gz: 2dd6cd3053afd3a77746aae662bdfc278244f9f6
4
+ data.tar.gz: 07267c303a943a821d030b0448e04f2db365c8a1
5
5
  SHA512:
6
- metadata.gz: 7bab568eea1979f9028983cfaa6e365a5207b7cc4f6bde0ee9697111f4ef00adf0066a94fad2f3a7ef0f6fe1ba8b1bbc8ca0a9eeeebf62d71077b7f2eb8531e5
7
- data.tar.gz: 0ed0b531f112339b9b69697385373b21212210523c77f7c0892ebc330ccb604afa9c22abd9b3ff435cec1b102eaf6f107fca6bfe6dadf7efd95e863221ac8ea7
6
+ metadata.gz: beb1c0ff512feaa49a5d40309cdac879960567feb67a62eccfa0e6160dead270bef3d6d5d3b8dd268d5ce8d6695f3c8c84a57f672aeedb087c513cedada2addc
7
+ data.tar.gz: 5b7a45d10b86a3d4c76ad6c4b6dcc16b60d3681f2dc8ae821743dc2c4e3a378c83ad8154a5d0da361b2d132e1deee03a78ae47f0237f71af6f0de59d49987624
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.3.4
4
+
5
+ ### Features
6
+
7
+ - Added command 'vim' to open a file/folder on a given server using VIM
8
+
9
+ ### Bug Fixes
10
+
11
+ - Removed hard coded `deploy` user dependency from assets server config
12
+
3
13
  ## v2.3.3
4
14
 
5
15
  ### Bug Fixes
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
 
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Karo
2
- VERSION = "2.3.3"
2
+ VERSION = "2.3.4"
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.3.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-25 00:00:00.000000000 Z
11
+ date: 2013-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry