We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
next --init
1 parent 4f95e77 commit b37dc83Copy full SHA for b37dc83
exe/next.sh
@@ -1,6 +1,5 @@
1
#!/bin/bash
2
if [[ "${@}" == "--init" ]]; then
3
- echo "doing a thing"
4
# Add next? top of Gemfile
5
cat <<-STRING > Gemfile.tmp
6
def next?
@@ -11,6 +10,19 @@ STRING
11
10
mv Gemfile.tmp Gemfile
12
13
ln -s Gemfile Gemfile.next
+ 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
26
exit $?
27
fi
28
0 commit comments