noveku 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -2
- data/lib/noveku/base.rb +6 -0
- data/lib/noveku/version.rb +1 -1
- data/noveku.gemspec +1 -1
- metadata +2 -1
data/README.md
CHANGED
@@ -27,6 +27,7 @@ This gem exposes two executables :
|
|
27
27
|
|
28
28
|
Supported commands and their equivalent :
|
29
29
|
|
30
|
+
* `rake` : `heroku run rake ARGS --remove ENV`
|
30
31
|
* `console`: `heroku run console --remote ENV`
|
31
32
|
* `migrate`: `heroku run rake db:migrate --remote ENV && heroku restart --remote ENV`
|
32
33
|
* `tail`: `heroku logs --tail --remote ENV`
|
@@ -36,7 +37,7 @@ This makes several other commands available, such as `restart`, `releases`, ...
|
|
36
37
|
|
37
38
|
## What's next
|
38
39
|
|
39
|
-
Commands that will be soon supported :
|
40
|
+
Commands that will be soon supported : commands for dumping mongolab database.
|
40
41
|
|
41
42
|
## Contributions
|
42
43
|
|
@@ -47,4 +48,5 @@ Commands that will be soon supported : `rake`, commands for dumping mongolab dat
|
|
47
48
|
|
48
49
|
## Changelog
|
49
50
|
|
50
|
-
* `0.
|
51
|
+
* `0.2`: Added rake command
|
52
|
+
* `0.1`: First version. Available commands : `console`, `migrate`, `tail`
|
data/lib/noveku/base.rb
CHANGED
@@ -18,6 +18,12 @@ module Noveku
|
|
18
18
|
send "#{@command}_cmd"
|
19
19
|
end
|
20
20
|
|
21
|
+
# Execute a rake task
|
22
|
+
def rake_cmd
|
23
|
+
task = @commands[1..-1].join(' ')
|
24
|
+
system "heroku run rake #{task} --remote #{@environment}"
|
25
|
+
end
|
26
|
+
|
21
27
|
# Open the console
|
22
28
|
def console_cmd
|
23
29
|
system "heroku run console --remote #{@environment}"
|
data/lib/noveku/version.rb
CHANGED
data/noveku.gemspec
CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.name = "noveku"
|
6
6
|
s.version = Noveku::VERSION
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
|
-
s.authors = ["Novelys"]
|
8
|
+
s.authors = ["Novelys", "Kevin Soltysiak"]
|
9
9
|
s.email = ["contact@novelys.com"]
|
10
10
|
s.homepage = "http://github.com/novelys/noveku"
|
11
11
|
s.summary = "Heroku shorcuts for commonly used commands at novelys"
|
metadata
CHANGED