Sha256: bdbfd9bbf3af613a99ebd57d923d37300024c5ddd5d0e920eb395edf92c00535
Contents?: true
Size: 741 Bytes
Versions: 2
Compression:
Stored size: 741 Bytes
Contents
require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root "./spec/test_app_templates" def install_engine generate 'sufia:install', '-f' end def browse_everything_config generate "browse_everything:config" end def add_analytics_config append_file 'config/analytics.yml' do "\n" + "analytics:\n" + " app_name: My App Name\n" + " app_version: 0.0.1\n" + " privkey_path: /tmp/privkey.p12\n" + " privkey_secret: s00pers3kr1t\n" + " client_email: oauth@example.org\n" end end def enable_analytics gsub_file "config/initializers/sufia.rb", "config.analytics = false", "config.analytics = true" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sufia-6.0.0 | spec/test_app_templates/lib/generators/test_app_generator.rb |
sufia-6.0.0.rc4 | spec/test_app_templates/lib/generators/test_app_generator.rb |