heroku_whiz 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data/lib/heroku_whiz.rb +11 -11
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3bc391ad209aec5d41a9e32f27ea91fe8c29d58c3e69d3432a41ab7848fc9ee
|
4
|
+
data.tar.gz: cf016eb8d4ee4acd39276401d90a82b6eafceb3649c0f4b57bd115f2dceda2c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d71fbce6a42e1998f6a733bf2ca12bbc6c9bb0eeee2a9e16020128395e0f1374b1dc54a953379afcfce7cddc1eae3920c9fae6f4669dd3947cb52296f31b69c
|
7
|
+
data.tar.gz: caf12a507bf4f55ee42ca4705c45acf2a6699434eb4fa2a2cc09edb5906d5e05f6065ea5d9d86b0db1b3bce7e132d59d9cdfc6f1648bed46a8900b5d66713c31
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
R�����) ��{�h����D��5�
|
2
|
+
7��2����ȝm�F�ٜ�B��� o��.Ѻ�{������0��FFG�dˌ2���ﲈF"��(�]��U���K�aaq�15^~�j
|
3
|
+
���~��G�C�gv�?��V
|
data/lib/heroku_whiz.rb
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
# file: heroku_whiz.rb
|
4
4
|
|
5
5
|
# created: 8th March 2022
|
6
|
-
# description: Handy (experimental) Heroku gem for noobs to create a
|
6
|
+
# description: Handy (experimental) Heroku gem for noobs to create a
|
7
7
|
# simple Heroku app in a whiz!
|
8
8
|
|
9
|
-
# note: If this gem becomes outdated because of a change in the Heroku app
|
10
|
-
# setup process, please inform the owner of this project via *Issues*
|
9
|
+
# note: If this gem becomes outdated because of a change in the Heroku app
|
10
|
+
# setup process, please inform the owner of this project via *Issues*
|
11
11
|
# on GitHub (https://github.com/jrobertson/heroku_whiz).
|
12
12
|
|
13
13
|
|
@@ -24,7 +24,7 @@ require 'clipboard'
|
|
24
24
|
# Example usage:
|
25
25
|
#
|
26
26
|
# hw = HerokuWhiz.new dir: '/home/james/heroku', template: 'rack', appname: 'hello2', debug: true
|
27
|
-
#
|
27
|
+
#
|
28
28
|
# hw.wipe_clean # removes the previous local app file directory
|
29
29
|
# hw.create # creates the local app file directory
|
30
30
|
# #hw.local_run # runs the web app locally
|
@@ -35,14 +35,14 @@ require 'clipboard'
|
|
35
35
|
|
36
36
|
class HerokuWhiz
|
37
37
|
|
38
|
-
def initialize(dir: '.', template: 'rack', appname: 'myapp',
|
38
|
+
def initialize(dir: '.', template: 'rack', appname: 'myapp',
|
39
39
|
verbose: true, debug: false)
|
40
40
|
|
41
41
|
@dir, @template, @appname, @verbose = dir, template, appname, verbose
|
42
42
|
|
43
43
|
@app_path = File.join(@dir, @appname)
|
44
44
|
|
45
|
-
|
45
|
+
|
46
46
|
end
|
47
47
|
|
48
48
|
def app_url()
|
@@ -110,10 +110,10 @@ class HerokuWhiz
|
|
110
110
|
|
111
111
|
#`heroku create #{@appname}`
|
112
112
|
|
113
|
-
# the above statement was commented out because there's a
|
113
|
+
# the above statement was commented out because there's a
|
114
114
|
# high probability the appname you have chosen has already been taken
|
115
115
|
# e.g. hello2 => hello2.herokuapp.com
|
116
|
-
|
116
|
+
|
117
117
|
`heroku create`
|
118
118
|
sleep 2
|
119
119
|
|
@@ -135,7 +135,7 @@ class HerokuWhiz
|
|
135
135
|
sleep 1
|
136
136
|
|
137
137
|
Process.kill('QUIT', r.pid)
|
138
|
-
|
138
|
+
|
139
139
|
|
140
140
|
puts 'SUCCESS! Ready to deploy' if s == "Hello World!\n"
|
141
141
|
|
@@ -151,9 +151,9 @@ class HerokuWhiz
|
|
151
151
|
# write the config.ru file
|
152
152
|
#
|
153
153
|
config = %q(
|
154
|
-
run lambda
|
154
|
+
run lambda {|env|
|
155
155
|
[200, {'Content-Type'=>'text/plain'}, StringIO.new("Hello World!\n")]
|
156
|
-
|
156
|
+
})
|
157
157
|
File.write File.join(@app_path, 'config.ru'), config
|
158
158
|
|
159
159
|
# write the Gemfile
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|