lift_off 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/lift_off +13 -12
- data/lib/lift_off/version.rb +1 -1
- metadata +1 -1
data/bin/lift_off
CHANGED
@@ -72,25 +72,26 @@ Dir.chdir "#{underscore(new_name)}" do
|
|
72
72
|
other_files = [".rvmrc", "config.ru", "Rakefile"].select {|other| File.exists?(other) }
|
73
73
|
|
74
74
|
targets = Dir['**/*.{erb,haml,rb,sh,yml}'] + other_files
|
75
|
-
|
75
|
+
pa "I'm going to rename all erb, haml, rb, sh, and yaml files now", :blue
|
76
76
|
targets.each do |target|
|
77
|
-
|
77
|
+
pa target, :yellow
|
78
78
|
replace_in_file(target, new_name)
|
79
79
|
end
|
80
|
-
|
81
|
-
|
80
|
+
pa "All files renamed.", :blue
|
81
|
+
pa "*" * 18, :green
|
82
|
+
pa ""
|
82
83
|
|
83
|
-
|
84
|
+
pa "I need to setup the database yml now.", :blue
|
84
85
|
FileUtils.cp 'config/database.example.yml', 'config/database.yml'
|
85
|
-
|
86
|
-
|
86
|
+
pa "Done!", :blue
|
87
|
+
pa "*" * 5, :green
|
87
88
|
|
88
|
-
|
89
|
+
pa "I'm going to clear out the FlightPlan git repo now.", :blue
|
89
90
|
remove_git_repo
|
90
|
-
|
91
|
+
pa "Done. Let's set a new one up.", :blue
|
91
92
|
establish_new_git_repo
|
92
|
-
|
93
|
-
|
93
|
+
pa "Sweet. That's done too.", :blue
|
94
|
+
pa "*" * 23, :green
|
94
95
|
|
95
|
-
|
96
|
+
pa "And we're done! ENJOY!!!!!1!", :pink
|
96
97
|
end
|
data/lib/lift_off/version.rb
CHANGED