raygun 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/raygun/app_builder.rb +1 -1
- data/lib/raygun/generators/app_generator.rb +14 -6
- data/lib/raygun/version.rb +1 -1
- metadata +1 -1
data/lib/raygun/app_builder.rb
CHANGED
@@ -87,18 +87,18 @@ module Raygun
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def setup_database
|
90
|
-
say
|
90
|
+
say "Setting up database"
|
91
91
|
build :use_postgres_config_template
|
92
92
|
build :create_database
|
93
93
|
end
|
94
94
|
|
95
95
|
def setup_generators
|
96
|
-
say
|
96
|
+
say "Installing custom view generator templates"
|
97
97
|
build :setup_generators
|
98
98
|
end
|
99
99
|
|
100
100
|
def create_raygun_views
|
101
|
-
say
|
101
|
+
say "Creating views and layouts"
|
102
102
|
build :replace_public_index
|
103
103
|
build :create_partials_directory
|
104
104
|
#build :create_shared_flashes
|
@@ -107,7 +107,7 @@ module Raygun
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def configure_app
|
110
|
-
say
|
110
|
+
say "Configuring app"
|
111
111
|
|
112
112
|
build :configure_rspec
|
113
113
|
build :generate_rspec
|
@@ -138,13 +138,13 @@ module Raygun
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def copy_miscellaneous_files
|
141
|
-
say
|
141
|
+
say "Copying miscellaneous support files"
|
142
142
|
build :copy_rake_tasks
|
143
143
|
build :copy_procfile
|
144
144
|
end
|
145
145
|
|
146
146
|
def knits_and_picks
|
147
|
-
say
|
147
|
+
say "Converting old hash syntax and fixing knit picks"
|
148
148
|
build :convert_to_19_hash_syntax
|
149
149
|
build :consistent_quoting
|
150
150
|
end
|
@@ -176,5 +176,13 @@ module Raygun
|
|
176
176
|
def get_builder_class
|
177
177
|
Raygun::AppBuilder
|
178
178
|
end
|
179
|
+
|
180
|
+
# We want output from our bundle commands, overriding thor's implementation.
|
181
|
+
def bundle_command(command)
|
182
|
+
say_status :run, "bundle #{command}"
|
183
|
+
cmd = "#{Gem.ruby} -rubygems #{Gem.bin_path('bundler', 'bundle')} #{command}"
|
184
|
+
IO.popen(cmd) { |p| p.each { |f| puts f } }
|
185
|
+
end
|
186
|
+
|
179
187
|
end
|
180
188
|
end
|
data/lib/raygun/version.rb
CHANGED