rails-base 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +23 -0
- data/bin/rbase +18 -0
- data/lib/template.rb +3171 -0
- data/lib/version.rb +3 -0
- data/rails-base.gemspec +42 -0
- metadata +90 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 87a9eb9ac5cb85115352f1ec1c501559085b4f6e
|
4
|
+
data.tar.gz: ffc2cdcf3e271f5605843bec1f26186dad734a9b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fd500b3fe812205e7ceb8d33812ef532c72c3132e8eea016a75afcc52bfa02aa371b976b9bf4f8439229bd2a21c1d255b06a1b507dbf528939f847402c3e39e6
|
7
|
+
data.tar.gz: a09652b06735c91bc78ea599208240cdc0f9503ca6d0b282b105174f79539c0b2cc725863e9ff1ed8829f58ab9101acef36fe9871e6a51894758875c7ad40d98
|
data/README.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Rails App Generator [![Gem Version](https://badge.fury.io/rb/rails-base.png)](http://badge.fury.io/rb/rails-base)
|
2
|
+
script to generate a rails 4 app
|
3
|
+
uses rails_apps_composer
|
4
|
+
|
5
|
+
## Gems
|
6
|
+
_adds the following gems globally_
|
7
|
+
|
8
|
+
- uuidtools
|
9
|
+
- god
|
10
|
+
- whenever
|
11
|
+
- rails_12factor
|
12
|
+
|
13
|
+
## Install
|
14
|
+
`$ [sudo] gem install rails-base`
|
15
|
+
|
16
|
+
## Usage
|
17
|
+
_help_
|
18
|
+
`$ rbase --help`
|
19
|
+
|
20
|
+
_basic example_
|
21
|
+
`$ rbase new myapp`
|
22
|
+
|
23
|
+
we dont need to parse options like --git or --database as the generator is based off the [rails_apps_composer](https://github.com/RailsApps/rails_apps_composer) and gives a nice UI to choose these options
|
data/bin/rbase
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'commander/import'
|
5
|
+
|
6
|
+
program :version, '0.0.3'
|
7
|
+
program :description, 'rails project generator'
|
8
|
+
|
9
|
+
command :new do |c|
|
10
|
+
c.syntax = 'rbase new [app_name] [options]'
|
11
|
+
c.summary = 'generate a new rails project'
|
12
|
+
c.description = 'generate a new rails project'
|
13
|
+
c.example 'description', 'rails_base new my_app'
|
14
|
+
c.action do |args, options|
|
15
|
+
exec "rails new #{args.first} -m https://raw.github.com/theallegedjosh/rails-base/master/lib/template.rb"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|