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 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 : `rake`, commands for dumping mongolab database.
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.1`: First version. Available commands : `console`, `restart`, `tail`
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}"
@@ -1,3 +1,3 @@
1
1
  module Noveku
2
- VERSION = '0.1'
2
+ VERSION = '0.2'
3
3
  end
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
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noveku
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Novelys
9
+ - Kevin Soltysiak
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []