staging/lib/vcap/staging/plugin/rails3/plugin.rb
def create_asset_plugin
    init_code = <<-BODY
Rails.application.config.serve_static_assets = true
    BODY
    plugin_dir = File.join(destination_directory, 'app', 'vendor', 'plugins', 'serve_static_assets')
    FileUtils.mkdir_p(plugin_dir)
    init_script = File.join(plugin_dir, 'init.rb')
    File.open(init_script, 'wb') do |fh|
      fh.puts(init_code)
    end
    FileUtils.chmod(0600, init_script)
  end
# Generates a trivial Rails plugin that re-enables static asset serving at boot.
Generates a trivial Rails plugin that re-enables static asset serving at boot.
Generates a trivial Rails plugin that re - enables static asset serving at boot .
def create_asset_plugin
    init_code = <<-BODY
Rails.application.config.serve_static_assets = true
    BODY
    plugin_dir = File.join(destination_directory, 'app', 'vendor', 'plugins', 'serve_static_assets')
    FileUtils.mkdir_p(plugin_dir)
    init_script = File.join(plugin_dir, 'init.rb')
    File.open(init_script, 'wb') do |fh|
      fh.puts(init_code)
    end
    FileUtils.chmod(0600, init_script)
  end
def create_asset_plugin init_code = <<-BODY 
Rails.application.config.serve_static_assets = true
     BODY plugin_dir = File . join ( destination_directory , 'app' , 'vendor' , 'plugins' , 'serve_static_assets' ) FileUtils . mkdir_p ( plugin_dir ) init_script = File . join ( plugin_dir , 'init.rb' ) File . open ( init_script , 'wb' ) do | fh | fh . puts ( init_code ) end FileUtils . chmod ( 0600 , init_script ) end
Generates a trivial Rails plugin that re-enables static asset serving at boot.
Generates a trivial Rails plugin that re - enables static asset serving at boot .