frame 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/frame.rb +6 -2
- data/lib/frame/engine.rb +5 -0
- data/lib/generators/frame/frame_generator.rb +30 -0
- metadata +4 -2
data/lib/frame.rb
CHANGED
data/lib/frame/engine.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/named_base'
|
3
|
+
|
4
|
+
module Frame
|
5
|
+
module Generators
|
6
|
+
class FrameGenerator < Rails::Generators::NamedBase
|
7
|
+
|
8
|
+
desc "Installs Secret files if they don't already exist."
|
9
|
+
|
10
|
+
# Commandline options can be defined here using Thor-like options:
|
11
|
+
class_option :my_opt, :type => :boolean, :default => false, :desc => "My Option"
|
12
|
+
|
13
|
+
# I can later access that option using:
|
14
|
+
puts options[:my_opt]
|
15
|
+
|
16
|
+
|
17
|
+
#def self.source_root
|
18
|
+
# @source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
19
|
+
#end
|
20
|
+
|
21
|
+
#include Rails::Generators::Migration
|
22
|
+
|
23
|
+
|
24
|
+
#def create_secret
|
25
|
+
# template 'database.yml', 'config/database.yml'
|
26
|
+
#end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Frame will setup various Ruby on Rails projects with an instantly usable
|
15
15
|
application. The user can choose if they want authentication with devise, omniauth,
|
@@ -21,6 +21,8 @@ extensions: []
|
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
23
|
- lib/frame.rb
|
24
|
+
- lib/frame/engine.rb
|
25
|
+
- lib/generators/frame/frame_generator.rb
|
24
26
|
homepage: https://github.com/ncimino/frame
|
25
27
|
licenses: []
|
26
28
|
post_install_message:
|