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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8276a3737591aea08c1fb8f195e87707885a6fdf
4
- data.tar.gz: 6ec373babe3019497b922ed99313b60aa06906ce
3
+ metadata.gz: 01674808ff092468f361d5471a53b518cd9902d9
4
+ data.tar.gz: e9647f6fcb5f47dea8ba899c67e2dc32b0834fbd
5
5
  SHA512:
6
- metadata.gz: b051c0c2fb0a8f95cd0926517b79b2c2af5e2176bcee4eec5876fdf07b275985a0f9c8c0f794598e92566ae8e05671f23431817d93883b511b626aa4ce6b0209
7
- data.tar.gz: 0d369c7824d064f73ce4fd49c6a4765dd8474433c2c12b9e9d71f137f3e0108de486a3d886f99739dcd37e8e77f6bfe7846520c63f309bc30d3b5a2d4be3de3b
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
@@ -6,6 +6,7 @@ module Railsworks
6
6
  def install_tasks
7
7
  load 'railsworks/tasks/deploy.rake'
8
8
  load 'railsworks/tasks/console.rake'
9
+ load 'railsworks/tasks/rollbar.rake'
9
10
  end
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Railsworks
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-27 00:00:00.000000000 Z
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