configatron 2.8.4 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/configatron/install/install_generator.rb +24 -0
- data/{generators → lib/generators/configatron/install}/templates/configatron/defaults.rb +0 -0
- data/{generators → lib/generators/configatron/install}/templates/configatron/development.rb +0 -0
- data/{generators → lib/generators/configatron/install}/templates/configatron/production.rb +0 -0
- data/{generators → lib/generators/configatron/install}/templates/configatron/test.rb +0 -0
- data/{generators → lib/generators/configatron/install}/templates/initializers/configatron.rb +0 -0
- metadata +11 -12
- data/generators/configatron_generator.rb +0 -20
- data/generators/templates/configatron/cucumber.rb +0 -4
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
|
3
|
+
class Configatron
|
4
|
+
class InstallGenerator < ::Rails::Generators::Base #:nodoc:
|
5
|
+
|
6
|
+
desc 'Generates configatron files for the default Rails environments.'
|
7
|
+
|
8
|
+
def self.source_root
|
9
|
+
@_configatron_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.banner
|
13
|
+
"rails generate configatron:install"
|
14
|
+
end
|
15
|
+
|
16
|
+
def copy_files
|
17
|
+
template 'initializers/configatron.rb', 'config/initializers/configatron.rb'
|
18
|
+
%w{defaults development production test}.each do |env|
|
19
|
+
template "configatron/#{env}.rb", "config/configatron/#{env}.rb"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{generators → lib/generators/configatron/install}/templates/initializers/configatron.rb
RENAMED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configatron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yamler
|
16
|
-
requirement: &
|
16
|
+
requirement: &2186366120 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2186366120
|
25
25
|
description: ! 'configatron was developed by: markbates'
|
26
26
|
email: mark@markbates.com
|
27
27
|
executables: []
|
@@ -39,15 +39,14 @@ files:
|
|
39
39
|
- lib/configatron/rails.rb
|
40
40
|
- lib/configatron/store.rb
|
41
41
|
- lib/configatron.rb
|
42
|
+
- lib/generators/configatron/install/install_generator.rb
|
43
|
+
- lib/generators/configatron/install/templates/configatron/defaults.rb
|
44
|
+
- lib/generators/configatron/install/templates/configatron/development.rb
|
45
|
+
- lib/generators/configatron/install/templates/configatron/production.rb
|
46
|
+
- lib/generators/configatron/install/templates/configatron/test.rb
|
47
|
+
- lib/generators/configatron/install/templates/initializers/configatron.rb
|
42
48
|
- README.textile
|
43
49
|
- LICENSE
|
44
|
-
- generators/configatron_generator.rb
|
45
|
-
- generators/templates/configatron/cucumber.rb
|
46
|
-
- generators/templates/configatron/defaults.rb
|
47
|
-
- generators/templates/configatron/development.rb
|
48
|
-
- generators/templates/configatron/production.rb
|
49
|
-
- generators/templates/configatron/test.rb
|
50
|
-
- generators/templates/initializers/configatron.rb
|
51
50
|
homepage: http://www.metabates.com
|
52
51
|
licenses: []
|
53
52
|
post_install_message:
|
@@ -62,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
61
|
version: '0'
|
63
62
|
segments:
|
64
63
|
- 0
|
65
|
-
hash:
|
64
|
+
hash: 2809168448628847108
|
66
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
66
|
none: false
|
68
67
|
requirements:
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'rails_generator'
|
2
|
-
class ConfigatronGenerator < Rails::Generator::Base # :nodoc:
|
3
|
-
|
4
|
-
def manifest
|
5
|
-
record do |m|
|
6
|
-
m.directory 'config/configatron'
|
7
|
-
m.directory 'config/configatron/development'
|
8
|
-
m.directory 'config/configatron/test'
|
9
|
-
m.directory 'config/configatron/production'
|
10
|
-
m.directory 'config/configatron/cucumber'
|
11
|
-
m.file 'initializers/configatron.rb', 'config/initializers/configatron.rb'
|
12
|
-
m.file 'configatron/development.rb', 'config/configatron/development.rb'
|
13
|
-
m.file 'configatron/production.rb', 'config/configatron/production.rb'
|
14
|
-
m.file 'configatron/test.rb', 'config/configatron/test.rb'
|
15
|
-
m.file 'configatron/cucumber.rb', 'config/configatron/cucumber.rb'
|
16
|
-
m.file 'configatron/defaults.rb', 'config/configatron/defaults.rb'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
end # ConfigatronGenerator
|