intersect_rails_composer 0.0.4 → 0.0.6
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/rails_wizard/command.rb +32 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c96bdca10705c3d28087cf4640d7caa937501e18
|
4
|
+
data.tar.gz: b7ff4a52f4e9800796079f4c1ca7ba15c70f262a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41270d7388ec662c62395156f80c14ba437d3dcdbbe3bc204fa1c4bd5a8abec77ae7e110a2c7074a1007521ec055a7a51fa2ac21c53728e22f07c7906a29c558
|
7
|
+
data.tar.gz: 31ae58dd61a0098cb0bf2116449ca1dca698270625415d47517254d0eabc049f52ed5cceadbedc587483e645d4baa438c0c0f70cc67a810e730435c91f30d9de
|
data/lib/rails_wizard/command.rb
CHANGED
@@ -6,7 +6,7 @@ module RailsWizard
|
|
6
6
|
include Thor::Actions
|
7
7
|
desc "new APP_NAME", "create a new Rails app"
|
8
8
|
method_option :recipes, :type => :array, :aliases => "-r"
|
9
|
-
method_option :
|
9
|
+
method_option :interactive, :type => :string, :aliases => "-i"
|
10
10
|
method_option :recipe_dirs, :type => :array, :aliases => "-l"
|
11
11
|
method_option :no_default_recipes, :type => :boolean, :aliases => "-L"
|
12
12
|
method_option :template_root, :type => :string, :aliases => '-t'
|
@@ -66,8 +66,37 @@ module RailsWizard
|
|
66
66
|
def load_defaults
|
67
67
|
# Load defaults from a file; if a file specifies recipes, they'll be run *before*
|
68
68
|
# any on the command line (or prompted for)..
|
69
|
-
return [[], {}]
|
70
|
-
defaults =
|
69
|
+
return [[], {}] if options[:interactive]
|
70
|
+
defaults = {
|
71
|
+
"recipes" => ["core"],
|
72
|
+
"prefs" => {
|
73
|
+
:apps4 => "none",
|
74
|
+
:dev_webserver => "webrick",
|
75
|
+
:prod_webserver => "same",
|
76
|
+
:database => "postgresql",
|
77
|
+
:templates => "haml",
|
78
|
+
:unit_test => "rspec",
|
79
|
+
:integration => "cucumber",
|
80
|
+
:fixtures => "factory_girl",
|
81
|
+
:frontend => "bootstrap3",
|
82
|
+
:form_builder => "simple_form",
|
83
|
+
:email => "gmail",
|
84
|
+
:authentication => "devise",
|
85
|
+
:devise_modules => "default",
|
86
|
+
:authorization => "cancan",
|
87
|
+
:continuous_testing => "none",
|
88
|
+
:starter_app => "admin_app",
|
89
|
+
:ban_spiders => true,
|
90
|
+
:github => false,
|
91
|
+
:local_env_file => true,
|
92
|
+
:quiet_assets => true,
|
93
|
+
:better_errors => true,
|
94
|
+
:rvmrc => true },
|
95
|
+
"gems" => nil,
|
96
|
+
"args" => {
|
97
|
+
:skip_test_unit => true,
|
98
|
+
:skip_active_record => false }
|
99
|
+
}
|
71
100
|
recipes = defaults.delete('recipes') { [] }
|
72
101
|
[recipes, defaults]
|
73
102
|
end
|