railsworks 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/railsworks/tasks/rollbar.rake +27 -0
- data/lib/railsworks/tasks.rb +1 -0
- data/lib/railsworks/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01674808ff092468f361d5471a53b518cd9902d9
|
4
|
+
data.tar.gz: e9647f6fcb5f47dea8ba899c67e2dc32b0834fbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee97241d54e1c55c682fa15931527d78df3bfbe3b33975067caeb7f0b9e381c20789f5537943450b7687a7e04ba3eceea6b81fbbe06913b8e6b76925454b7b23
|
7
|
+
data.tar.gz: 4b68bb80da3d32fe4181625538882814b78124b0c2fb656501935fb87539877b3bc36cad5e5819c5bc08dbd6a33046cae558cd0bb228cd66e6d37ae1f91a050c
|
data/README.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
# Railsworks
|
2
|
+
[![Build Status](https://secure.travis-ci.org/kurtisnelson/railsworks.png)](http://travis-ci.org/kurtisnelson/railsworks)
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/railsworks.png)](http://badge.fury.io/rb/railsworks)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/kurtisnelson/railsworks.png)](https://codeclimate.com/github/kurtisnelson/railsworks)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/kurtisnelson/railsworks/badge.svg)](https://coveralls.io/r/kurtisnelson/railsworks)
|
6
|
+
[![Dependency Status](https://gemnasium.com/kurtisnelson/railsworks.png)](https://gemnasium.com/kurtisnelson/railsworks)
|
7
|
+
[Documentation](http://rubydoc.info/gems/railsworks/)
|
2
8
|
|
3
9
|
Useful rake tasks for rails apps deployed via Amazon OpsWorks
|
4
10
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
Bundler.require if defined?(Bundler)
|
4
|
+
|
5
|
+
namespace :rollbar do
|
6
|
+
desc "Send deployment notification"
|
7
|
+
task :deploy do
|
8
|
+
rollbar_user = ENV['USER'] || ENV['USERNAME']
|
9
|
+
rollbar_env = 'production'
|
10
|
+
rollbar_token = ENV['ROLLBAR_ACCESS_TOKEN']
|
11
|
+
current_revision = `git log -n 1 --pretty=format:"%H"`
|
12
|
+
|
13
|
+
uri = URI.parse 'https://api.rollbar.com/api/1/deploy/'
|
14
|
+
params = {
|
15
|
+
:local_username => rollbar_user,
|
16
|
+
:access_token => rollbar_token,
|
17
|
+
:environment => rollbar_env,
|
18
|
+
:revision => current_revision }
|
19
|
+
|
20
|
+
request = Net::HTTP::Post.new(uri.request_uri)
|
21
|
+
request.body = JSON.dump(params)
|
22
|
+
|
23
|
+
Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
|
24
|
+
http.request(request)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/railsworks/tasks.rb
CHANGED
data/lib/railsworks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsworks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kurt Nelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- lib/railsworks/tasks.rb
|
70
70
|
- lib/railsworks/tasks/console.rake
|
71
71
|
- lib/railsworks/tasks/deploy.rake
|
72
|
+
- lib/railsworks/tasks/rollbar.rake
|
72
73
|
- lib/railsworks/version.rb
|
73
74
|
- railsworks.gemspec
|
74
75
|
homepage: https://github.com/kurtisnelson/railsworks
|