gitrubydeploy 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bf6206c9f3e576d111cfa604927330baf47236f6
4
+ data.tar.gz: 059ae668694e19de6bd18765712ef4498a6c7b6a
5
+ SHA512:
6
+ metadata.gz: bf0180b0d8a7b0348d27e6d2f5349a97d44a3ba1d52fa3366a0bbf3a41dc680cda1edd2638c0eb1c7ee52df2ba8d00b691b2b9967d888ecb756a00a16a41bf79
7
+ data.tar.gz: 670958b95e51e7652b27c0b29e5ae2b973cbd55e6ac3dc7c98f8a9bc66cb6c4e620210559ae1c8ca7c3fc87df15d25bf11a4e84ebf83934494a1803cbc692344
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2016 NYWTON BARROS
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,17 @@
1
+ = GitRubyDeploy
2
+
3
+ Start is a collection of Rails generators for faster project setup.
4
+
5
+ == Setup
6
+
7
+ Add the gem to your Gemfile.
8
+
9
+ gem "git_ruby_deploy"
10
+
11
+ Then you can run any of the included generators.
12
+
13
+ rails g git_ruby:install
14
+
15
+ == Included Generators
16
+ * git_ruby:install - Create deploy controller and configs
17
+
@@ -0,0 +1,8 @@
1
+ class GitRubyDeploy::ControllersGenerator < Rails::Generators::Base
2
+ source_root File.expand_path("../templates", __FILE__)
3
+
4
+ def copy_files
5
+ copy_file 'config/controllers/deploy_controller.rb', 'app/controllers/deploy_controller.rb'
6
+ copy_file 'config/routes.rb', 'app/cib/deploy_controller.rb'
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ class DeployController < ApplicationController
2
+ def deploy
3
+ system('git pull origin master')
4
+ system('bundle')
5
+ system('rake db:migrate')
6
+ render json: 'Deploy done.'
7
+ end
8
+ end
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ post '/deploy', to: 'deploy_controller#deploy'
3
+
4
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitrubydeploy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nywton Barros
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.5
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 4.2.5
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5'
33
+ - !ruby/object:Gem::Dependency
34
+ name: pry-rails
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '='
38
+ - !ruby/object:Gem::Version
39
+ version: 0.3.2
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '='
45
+ - !ruby/object:Gem::Version
46
+ version: 0.3.2
47
+ description: Webhook to deploy git projects
48
+ email:
49
+ - nywton.barros@gmail.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - MIT-LICENSE
55
+ - README.rdoc
56
+ - lib/generators/git_ruby_deploy/controllers/controllers_generator.rb
57
+ - lib/generators/git_ruby_deploy/controllers/templates/config/controllers/deploy_controller.rb
58
+ - lib/generators/git_ruby_deploy/controllers/templates/config/routes.rb
59
+ homepage: http://rubygems.org/gems/gitrubydeploy
60
+ licenses:
61
+ - MIT
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 1.9.3
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.4.6
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: Rails git deploy
83
+ test_files: []