capistrano-sensiolabs-insight 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 68f186bc15fcd9fba55c7d95c40835cca861e8ed
4
+ data.tar.gz: ac9045dd568e7abf12c3e62fa1889632b848c9f2
5
+ SHA512:
6
+ metadata.gz: b0ffa5696389027ef7cb85ca563b746286575aefc51fd52094d4719347f5691b2a2512ab78e9d4e331ebc6d33bbcac984faa1cb633c6b9c564b8e76e608020d0
7
+ data.tar.gz: d3548d786bad00d18620dc5ab5b5f67b8957964848023b892bba24b1b23823bfd23059fe9bdbbf678751f9b60dd42bd199162ad03caa17d6022d0ec1d6b681bb
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Ahmed
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,25 @@
1
+ # Capistrano-SensioLabs-Insight
2
+ =============================
3
+
4
+ Capistrano recipe to notify SensioLabs Insight after deploying code
5
+
6
+ ## Installation
7
+
8
+ gem install capistrano-sensiolabs-insight
9
+
10
+ ## Usage
11
+
12
+ Include the recipe
13
+
14
+ require 'capistrano-sensiolabs-insight'
15
+
16
+ Set required parameters
17
+
18
+ set :sensio_labs_insight_user_uuid, "<your SensioLabs Insight account UUID>"
19
+ set :sensio_labs_insight_api_token, "<your SensioLabs API Key>"
20
+ set :sensio_labs_insight_project_uuid, "<your SensioLabs Insight project UUID>"
21
+ set :sensio_labs_insight_project_branch, "e.g. origin/\master"
22
+
23
+ Add the task, typically after deploy
24
+
25
+ after "deploy:update_code", "sensio_labs_insight:notify"
@@ -0,0 +1,19 @@
1
+ $LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
2
+ require 'capistrano-sensiolabs-insight/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'capistrano-sensiolabs-insight'
6
+ s.version = Capistrano::SensioLabsInsight::VERSION
7
+ s.authors = ['Ahmed Mohamed']
8
+ s.email = ['a.mohamed@edfa3ly.com.eg']
9
+ s.homepage = 'http://github.com/ahmedmhmd/capistrano-sensiolabs-insight'
10
+ s.summary = 'Capistrano SensioLabs Insight recipe'
11
+ s.description = 'Capistrano recipe to notify SensioLabs Insight after deploying code'
12
+ s.files = `git ls-files`.split($/)
13
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
14
+ s.require_paths = ['lib']
15
+ s.license = 'MIT'
16
+
17
+ s.add_dependency 'capistrano'
18
+ s.add_dependency 'colored'
19
+ end
@@ -0,0 +1 @@
1
+ require 'capistrano-sensiolabs-insight/capistrano-sensiolabs-insight'
@@ -0,0 +1,17 @@
1
+ require 'capistrano'
2
+ require 'colored'
3
+
4
+ Capistrano::Configuration.instance.load do
5
+ namespace :sensio_labs_insight do
6
+ desc 'Notify SensioLabs Insight of deployment'
7
+ task :notify do
8
+ abort 'Please specify :sensio_labs_insight_user_uuid'.red unless exists? :sensio_labs_insight_user_uuid
9
+ abort 'Please specify :sensio_labs_insight_api_token'.red unless exists? :sensio_labs_insight_api_token
10
+ abort 'Please specify :sensio_labs_insight_project_uuid'.red unless exists? :sensio_labs_insight_project_uuid
11
+ abort 'Please specify :sensio_labs_insight_project_reference'.red unless exists? :sensio_labs_insight_project_reference
12
+ run_locally %Q{\
13
+ curl -d "reference=#{sensio_labs_insight_project_reference}" -X POST -H "Accept: application/vnd.com.sensiolabs.insight+xml" "https://#{sensio_labs_insight_user_uuid}:#{sensio_labs_insight_api_token}@insight.sensiolabs.com/api/projects/#{sensio_labs_insight_project_uuid}/analyses" > /dev/null 2>&1\
14
+ }
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ module Capistrano
2
+ module SensioLabsInsight
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-sensiolabs-insight
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ahmed Mohamed
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: colored
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Capistrano recipe to notify SensioLabs Insight after deploying code
42
+ email:
43
+ - a.mohamed@edfa3ly.com.eg
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - LICENSE
49
+ - README.md
50
+ - capistrano-sensiolabs-insight.gemspec
51
+ - lib/capistrano-sensiolabs-insight.rb
52
+ - lib/capistrano-sensiolabs-insight/capistrano-sensiolabs-insight.rb
53
+ - lib/capistrano-sensiolabs-insight/version.rb
54
+ homepage: http://github.com/ahmedmhmd/capistrano-sensiolabs-insight
55
+ licenses:
56
+ - MIT
57
+ metadata: {}
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ requirements: []
73
+ rubyforge_project:
74
+ rubygems_version: 2.0.3
75
+ signing_key:
76
+ specification_version: 4
77
+ summary: Capistrano SensioLabs Insight recipe
78
+ test_files: []