Skip to content

Commit b37dc83

Browse files
etagwerkerjnraine
authored andcommitted
More verbose output when calling next --init (#7)
1 parent 4f95e77 commit b37dc83

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

exe/next.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash
22
if [[ "${@}" == "--init" ]]; then
3-
echo "doing a thing"
43
# Add next? top of Gemfile
54
cat <<-STRING > Gemfile.tmp
65
def next?
@@ -11,6 +10,19 @@ STRING
1110
mv Gemfile.tmp Gemfile
1211

1312
ln -s Gemfile Gemfile.next
13+
echo <<-MESSAGE
14+
Created Gemfile.next (a symlink to your Gemfile). Your Gemfile has been modified to support dual-booting!
15+
16+
There's just one more step: modify your Gemfile to use a newer version of Rails using the \`next?\` helper method.
17+
18+
For example, here's how to go from 5.2.3 to 6.0:
19+
20+
if next?
21+
gem "rails", "6.0.0"
22+
else
23+
gem "rails", "5.2.3"
24+
end
25+
MESSAGE
1426
exit $?
1527
fi
1628

0 commit comments

Comments
 (0)