class Hobo::InstallDefaultPluginsGenerator

Public Instance Methods

install_default_plugins() click to toggle source
# File lib/generators/hobo/install_default_plugins/install_default_plugins_generator.rb, line 12
def install_default_plugins
  opts = options.dup
  opts[:version] = Hobo::VERSION
  say "Installing default plugins for #{opts[:subsite]}..."
  say "Installing hobo_rapid plugin..."
  install_plugin_helper('hobo_rapid', nil, opts.merge(:skip_dryml => true, :skip_gem => true))
  say "Installing hobo_jquery plugin..."
  install_plugin_helper('hobo_jquery', nil, opts.merge(:skip_gem => true))
  say "Installing #{opts[:theme]} theme..."
  install_plugin_helper(opts[:theme], nil, opts)
  say "Installing hobo_jquery_ui plugin..."
  install_plugin_helper('hobo_jquery_ui', nil, opts)
  if opts[:theme]=='hobo_bootstrap'
    say "Installing hobo_bootstrap_ui plugin..."
    install_plugin_helper('hobo_bootstrap_ui', nil, opts)
  end

  inject_css_require("jquery-ui/#{opts[:ui_theme]}", opts[:subsite], nil)

  unless opts[:skip_gem]
    gem_with_comments("jquery-ui-themes", "~> 0.0.4")
    Bundler.with_clean_env do
      run "bundle update"
    end
  end

end