Sha256: 02fd82a05aa23737794ea34b32fcf4999fa9ac90143caa0d3f5d3f67a50737eb

Contents?: true

Size: 676 Bytes

Versions: 3

Compression:

Stored size: 676 Bytes

Contents

class BlueRidgeGenerator < RubiGen::Base

  def manifest
    record do |m|
      m.directory base_dir
      m.file 'application_spec.js', "#{base_dir}/application_spec.js"
      m.file 'spec_helper.js',      "#{base_dir}/spec_helper.js"
      m.file 'javascript_spec_helper.rb', "#{base_dir}/javascript_spec_helper.rb"
      
      m.directory "#{base_dir}/fixtures"
      m.file 'application.html', "#{base_dir}/fixtures/application.html"
      m.file 'screw.css',        "#{base_dir}/fixtures/screw.css"
    end
  end

  def base_dir
    @base_dir ||= File.exist?("examples") ? "examples/javascripts" : File.exist?("spec") ? "spec/javascripts" : "test/javascript"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
drogus-blue-ridge-0.0.3 blue_ridge_generators/blue_ridge/blue_ridge_generator.rb
drogus-blue-ridge-0.0.2 blue_ridge_generators/blue_ridge/blue_ridge_generator.rb
drogus-blue-ridge-0.0.1 blue_ridge_generators/blue_ridge/blue_ridge_generator.rb