gitrubydeploy 0.0.3 → 0.0.4
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/lib/generators/{controllers → gitrubydeploy/controllers}/controllers_generator.rb +0 -0
- data/lib/generators/{controllers → gitrubydeploy/controllers}/templates/config/controllers/deploy_controller.rb +0 -0
- data/lib/generators/{controllers → gitrubydeploy/controllers}/templates/config/routes.rb +0 -0
- data/lib/generators/gitrubydeploy/install_generator.rb +25 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d807d2d45c52879866603cb377a062a1f36549aa
|
4
|
+
data.tar.gz: a938bfc6a8ea486ef1703c173ec56ebba716c0aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe798fe8125c4b204bfb4421cd55ffe2a23bc1e15892810f04090c346f2fec5b9523e26df356cb6aa245d833d217caf04e1af51112a684b94ba04fd1da03aac2
|
7
|
+
data.tar.gz: 56c01b9a75b7cdc2d4c96878e5ca9e4e187940340c9e508c909def76d484a6882f9f3d26f6486ad119604a217f723486523aeb5ae86dca4d67219f7921ec5e51
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
module GitRubtDeploy
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
desc "Generate controllers"
|
5
|
+
|
6
|
+
# Commandline options can be defined here using Thor-like options:
|
7
|
+
class_option :my_opt, :type => :boolean, :default => false, :desc => "My Option"
|
8
|
+
|
9
|
+
# I can later access that option using:
|
10
|
+
# options[:my_opt]
|
11
|
+
|
12
|
+
|
13
|
+
def self.source_root
|
14
|
+
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
15
|
+
end
|
16
|
+
|
17
|
+
# Generator Code. Remember this is just suped-up Thor so methods are executed in order
|
18
|
+
def copy_files
|
19
|
+
copy_file 'config/controllers/deploy_controller.rb', 'app/controllers/deploy_controller.rb'
|
20
|
+
copy_file 'config/routes.rb', 'app/config/deploy_controller.rb'
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitrubydeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nywton Barros
|
@@ -53,9 +53,10 @@ extra_rdoc_files: []
|
|
53
53
|
files:
|
54
54
|
- MIT-LICENSE
|
55
55
|
- README.rdoc
|
56
|
-
- lib/generators/controllers/controllers_generator.rb
|
57
|
-
- lib/generators/controllers/templates/config/controllers/deploy_controller.rb
|
58
|
-
- lib/generators/controllers/templates/config/routes.rb
|
56
|
+
- lib/generators/gitrubydeploy/controllers/controllers_generator.rb
|
57
|
+
- lib/generators/gitrubydeploy/controllers/templates/config/controllers/deploy_controller.rb
|
58
|
+
- lib/generators/gitrubydeploy/controllers/templates/config/routes.rb
|
59
|
+
- lib/generators/gitrubydeploy/install_generator.rb
|
59
60
|
homepage: http://rubygems.org/gems/gitrubydeploy
|
60
61
|
licenses:
|
61
62
|
- MIT
|