rail_pass 0.1.1 → 0.1.3
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.
@@ -19,11 +19,15 @@ module RailPass
|
|
19
19
|
:desc => "Database option: 'postgresql' or 'mongodb'", :aliases => "-b"
|
20
20
|
class_option :'app-server', :type => :string, :default => "unicorn", :banner => "NAME",
|
21
21
|
:desc => "Database option: 'unicorn', 'puma', or 'thin'", :aliases => "-a"
|
22
|
+
class_option :destructive, :type => :string, :default => nil, :banner => "",
|
23
|
+
:desc => "Option to skip the destructive confirmation prompt"
|
22
24
|
|
23
25
|
# Warn about destructive changes & confirm
|
24
26
|
def shit_gonna_get_crazy
|
25
|
-
|
26
|
-
|
27
|
+
unless options[:destructive]
|
28
|
+
accept = ask("\n#{set_color(set_color("[?]", Thor::Shell::Color::ON_BLACK), Thor::Shell::Color::RED)} These changes are #{set_color("VERY DESTRUCTIVE", Thor::Shell::Color::RED)} and only intended for #{set_color("brand-new projects", Thor::Shell::Color::BLUE)}. Proceeding with the installation will wipe out large portions of an existing project. Type 'yes' to continue, anything else to cancel.\n:")
|
29
|
+
exit unless accept == "yes"
|
30
|
+
end
|
27
31
|
end
|
28
32
|
|
29
33
|
# Add necessary gems
|
@@ -97,7 +101,7 @@ module RailPass
|
|
97
101
|
DIRECTORIES.each do |dir|
|
98
102
|
directory dir, dir
|
99
103
|
end
|
100
|
-
|
104
|
+
create_file ".rspec", "--color"
|
101
105
|
copy_file "config/initializers/dev_environment.rb"
|
102
106
|
end
|
103
107
|
|
data/lib/rail_pass/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rail_pass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|