rails_generators/trackman/templates/trackman.rake in trackman-0.3.0 vs rails_generators/trackman/templates/trackman.rake in trackman-0.3.1
- old
+ new
@@ -7,11 +7,11 @@
RestClient.log = Logger.new(STDOUT) if Debugger.debug_mode?
Trackman::Assets::Asset.sync
end
desc "Sets up the heroku configs required by Trackman"
- task :setup do
- configs = Trackman::ConfigurationHandler.s_to_h(`heroku config -s`)
+ task :setup, :app do |t, args|
+
heroku_version = Gem.loaded_specs["heroku"].version.to_s
- Trackman::ConfigurationHandler.new(configs, heroku_version).setup
+ Trackman::ConfigurationHandler.new(heroku_version, app: args[:app]).setup
end
end
\ No newline at end of file