pushie 0.1.1 → 0.1.2
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
- data/Gemfile +1 -1
- data/README.md +10 -4
- data/lib/pushie/version.rb +1 -1
- data/lib/tasks/push.rake +17 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3122c8cb7b1d5d5d1b095ecf1c486cad6522764f
|
4
|
+
data.tar.gz: cd10c0e2c5bdb561fbab06d1933df84e0d4cd3aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2b38d1c4d7a6e438f046256200d6d949c1fd4857c5f9f9a5a700d1851aca4d6a9d599ee336f77273ab49ead23433e7bfd8ad3ff3568a3e9d6249146fe6ea32a
|
7
|
+
data.tar.gz: 3c566cd913249427faea07ace823ada5dbcb1b9c88e340b964e5c0c8db1675d2d7733115a322286b4a012c509cd144b29674ec24779bf49125fdf164dd64ccf8
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Pushie
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Pushie is a simple gem which makes it easier to rapidly push to heroku production, using 2 rake tasks and rails_12factor to speed the process up.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,15 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
Simply run:
|
24
|
+
|
25
|
+
$ rake pushie:ready
|
26
|
+
|
27
|
+
to get ready for production, followed by:
|
28
|
+
|
29
|
+
$ rake pushie:push
|
30
|
+
|
31
|
+
to send it to heroku production!
|
26
32
|
|
27
33
|
## Development
|
28
34
|
|
data/lib/pushie/version.rb
CHANGED
data/lib/tasks/push.rake
CHANGED
@@ -1,15 +1,28 @@
|
|
1
|
+
|
1
2
|
desc 'Run all the processes for pushing to production'
|
2
3
|
namespace :pushie do
|
3
4
|
|
4
5
|
task :ready do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
branch_name = `git rev-parse --abbrev-ref HEAD`
|
7
|
+
if branch_name.strip.chomp != "master"
|
8
|
+
puts "\n[Pushie]: You must be on branch master\n\n"
|
9
|
+
else
|
10
|
+
system("bundle exec rake assets:clobber RAILS_ENV=production")
|
11
|
+
puts "\n[Pushie]: Assets have been clobbered for production, precompiling...\n\n"
|
12
|
+
system("bundle exec rake assets:precompile RAILS_ENV=production")
|
13
|
+
puts "\n[Pushie]: Assets have been precompiled for production, readying git...\n\n"
|
14
|
+
system("git add -A")
|
15
|
+
system("git commit -m 'pushie ~ set up for production'")
|
16
|
+
system("git push origin master")
|
17
|
+
puts "\n[Pushie]: Pushing to git origin master...\n\n"
|
18
|
+
system("git push origin master")
|
19
|
+
puts "\n[Pushie]: Assets have been precompiled for production\n\n"
|
20
|
+
end
|
9
21
|
end
|
10
22
|
|
11
23
|
task :push do
|
12
24
|
system("git push heroku master")
|
25
|
+
puts "\n[Pushie]: You pushed to heroku master\n\n"
|
13
26
|
end
|
14
27
|
|
15
28
|
end
|