revelry_generate 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e7ec78de327d2790ab466f0e9e5b6dfac291e8a
4
- data.tar.gz: e2fc39215f318072c55eff3006d01d414578e64e
3
+ metadata.gz: bcac98690706204faa090c78cd24399cb4572354
4
+ data.tar.gz: 78fae0c24e6d340e6442fc668c3c65841b793c68
5
5
  SHA512:
6
- metadata.gz: 3e534677cbfa766d2d8dca769b8cf27d73ae816802e11fe7bbeecbc3b9c988fd1a2f7f909b533a3543ba75c60ada4dfb42cf42184f01aa02953752e6c1b3373c
7
- data.tar.gz: c07de3837f37699eb8203338f7c4a4fb6f642a3dd027cd1d69e77983d05422e78163e93e5ece107e5436df0320e53b1e15dbc01add79c0706b247a42fd7b664d
6
+ metadata.gz: 37ded8b4ec5e8376f369158e6fcc8abf10fd69326f4e00a06b7135876e94e92d99b51f9e6c4aae2a294cb6f42f7c523c3f8e265b96f4e94aac19f03a9be27db1
7
+ data.tar.gz: 9fe51abacdfd9905b97fa0ff2ca09a4aa486a908cd716c65a2ae717fdc890d47ce5f9906ff92c6abaaa7314fb07e95bb95202971297387053d8bad3c9a1e0ebc
@@ -158,8 +158,11 @@ inject_into_file 'render-server/package.json', after: '"scripts": {' do
158
158
  JSON
159
159
  end
160
160
 
161
- create_file 'README.md'
162
- append_to_file 'README.md', <<-MD
161
+ if yes? 'Setup github and heroku?'
162
+ repo = ask('Github repo name (e.g. foo/bar): ')
163
+ system("hub create #{repo}")
164
+ create_file 'README.md'
165
+ append_to_file 'README.md', <<-MD
163
166
  ## Starting render server
164
167
 
165
168
  To start the render server, do:
@@ -170,12 +173,34 @@ To start the render server, do:
170
173
 
171
174
  ## Deploy to Heroku
172
175
 
173
- Update this code block with the correct template url and then un-codify it. That'll
174
- make you a heroku button to deploy this app:
176
+ [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/#{repo})
175
177
 
178
+ MD
179
+ system <<-SHELL
180
+ git add .
181
+ git commit -m 'Commit initially'
182
+ git push origin -u master
183
+ open https://heroku.com/deploy?template=`git remote get-url origin`
184
+ SHELL
185
+ else
186
+ create_file 'README.md'
187
+ append_to_file 'README.md', <<-MD
188
+ ## Starting render server
189
+
190
+ To start the render server, do:
191
+
192
+ ```
193
+ npm run dev
176
194
  ```
177
- [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/heroku/node-js-sample)
195
+
196
+ ## Deploy to Heroku
197
+
198
+ ```
199
+ [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/revelrylabs/foo)
178
200
  ```
201
+
179
202
  MD
203
+ end
204
+
180
205
 
181
206
  system('cat README.md')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revelry_generate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Prehn