hrk 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +97 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fdb088ad0092c7030fb064ba5064526bbe3e137
|
4
|
+
data.tar.gz: 6780d479838bd21044daafe61caa3383036989cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a04f74b39fa8d0de1572558b121d4efb91a2a9ef78c4675fc78df844319ee7e0b229af25fb2e816d70d1f5884eba16627bc2a9c205cc3855dc5b641f47f1c8d8
|
7
|
+
data.tar.gz: 14ffb786524ba1ca087b3bafc28ac85063c5db654e607b019623f8704b9be901c73fa953ace1f811d5de84e42b7b8e98930a7817859350aac0f30410644409cc
|
data/README.md
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
# Hrk
|
2
|
+
|
3
|
+
Hrk 2 swim like a dolphin in a sea of heroku commands
|
4
|
+
|
5
|
+
## Getting started
|
6
|
+
|
7
|
+
You can install the Hrk gem using the gem command:
|
8
|
+
|
9
|
+
```
|
10
|
+
$ gem install hrk
|
11
|
+
```
|
12
|
+
|
13
|
+
Or through bundler:
|
14
|
+
|
15
|
+
```
|
16
|
+
# in your Gemfile
|
17
|
+
gem 'hrk', group: :development
|
18
|
+
|
19
|
+
$ bundle install
|
20
|
+
```
|
21
|
+
|
22
|
+
And enjoy the hrk command awesome power:
|
23
|
+
```
|
24
|
+
$ hrk your-heroku-remote-name logs
|
25
|
+
```
|
26
|
+
|
27
|
+
|
28
|
+
## What does it do?
|
29
|
+
|
30
|
+
It's a command that calls the heroku toolbelt command for you, using your local
|
31
|
+
heroku git remote name instead of that app's name.
|
32
|
+
|
33
|
+
For example, let's say I've got an heroku app that's called:
|
34
|
+
|
35
|
+
> this-really-long-app-name
|
36
|
+
|
37
|
+
Well, I type my heroku commands like:
|
38
|
+
|
39
|
+
```
|
40
|
+
$ heroku run rake do:stuff
|
41
|
+
```
|
42
|
+
|
43
|
+
And it's easy.
|
44
|
+
|
45
|
+
Yep, but now I need a staging environment and a testing environment, so I add
|
46
|
+
other heroku repositories that I aptly call:
|
47
|
+
|
48
|
+
```
|
49
|
+
this-really-long-app-name-that-is-used-as-a-demo
|
50
|
+
this-really-long-app-name-draft
|
51
|
+
```
|
52
|
+
|
53
|
+
Now all my heroku commands look like:
|
54
|
+
|
55
|
+
```
|
56
|
+
$ heroku run rake do:something:else -a this-really-long-app-name
|
57
|
+
$ heroku run rake other:thing -a this-really-long-app-name-that-is-used-as-a-demo
|
58
|
+
$ heroku run rake yet:another:task -a this-really-long-app-name-draft
|
59
|
+
```
|
60
|
+
|
61
|
+
And, let's be frank, that sucks even when I don't have to chain these commands.
|
62
|
+
|
63
|
+
**Hrk to the rescue!**
|
64
|
+
|
65
|
+
Now, if you're like me, you've probably named your various heroku remotes in a
|
66
|
+
more sensible way than just your heroku app names, for example:
|
67
|
+
|
68
|
+
```
|
69
|
+
prod => this-really-long-app-name
|
70
|
+
staging => this-really-long-app-name-that-is-used-as-a-demo
|
71
|
+
test => this-really-long-app-name-draft
|
72
|
+
```
|
73
|
+
|
74
|
+
Which means that you could call the Hrk command instead of the heroku command
|
75
|
+
using your remotes names like:
|
76
|
+
|
77
|
+
```
|
78
|
+
$ hrk prod run rake do:some:work
|
79
|
+
$ hrk staging run rake arrange:stuff
|
80
|
+
$ hrk test run rake test:some:thingy
|
81
|
+
```
|
82
|
+
|
83
|
+
Easy!
|
84
|
+
|
85
|
+
## Do I still need the heroku toolbelt?
|
86
|
+
|
87
|
+
Yes. The hrk command calls the heroku command for you, it does not replace it.
|
88
|
+
|
89
|
+
## Very important warning!
|
90
|
+
|
91
|
+
Hrk is pronounced like "a shark" because it's funny.
|
92
|
+
|
93
|
+
## Boring licensing stuff
|
94
|
+
|
95
|
+
Hrk is released under the GPL V3 license, and the people rejoiced.
|
96
|
+
|
97
|
+
Read more at http://gplv3.fsf.org/
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hrk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Belleville
|
@@ -17,6 +17,7 @@ executables:
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- README.md
|
20
21
|
- bin/hrk
|
21
22
|
homepage: http://github.com/Bastes/hrk
|
22
23
|
licenses:
|