Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added generators

  • Loading branch information...
commit 36477ba0849b41ce868489ebdeb1fffe3a66707f 1 parent 4453f48
@hsbt authored
View
16 lib/generators/heroku_scale_scheduler/install_generator.rb
@@ -0,0 +1,16 @@
+module HerokuScaleScheduler
+ module Generators
+ class InstallGenerator < Rails::Generators::Base
+ source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
+
+ desc <<DESC
+Description:
+ Copies Heroku Scheduler configuration file to your config directory.
+DESC
+
+ def copy_config_file
+ copy_file 'heroku_ps.yml', 'config/heroku_ps.yml'
+ end
+ end
+ end
+end
View
9 lib/generators/heroku_scale_scheduler/templates/heroku_ps.yml
@@ -0,0 +1,9 @@
+app: example_app
+
+dynos:
+ 900: 2
+ 2200: 1
+
+workers:
+ 900: 1
+ 2200: 0
Please sign in to comment.
Something went wrong with that request. Please try again.