Sha256: 3303183e598f613880daede49e9623c23d089614e985c756a59dce3fd51eda99

Contents?: true

Size: 745 Bytes

Versions: 9

Compression:

Stored size: 745 Bytes

Contents

require File.join(File.dirname(__FILE__), "../generators_support")

class PackGenerator < RubiGen::Base
  include GeneratorsSupport

  default_options :author => nil

  attr_reader :name

  def initialize(runtime_args, runtime_options = {})
    @uses_builder = true
    super
    usage if args.empty?
    @name = args.shift
    extract_options
  end

  def manifest
    record do |m|
      build_controller_templates(m)
      build_view_templates(m)
    end
  end

  protected
    def banner
      <<-EOS
Creates a RuGUI controller and view with its resources.

USAGE: script/generate pack YOUR_CONTROLLER_AND_VIEW_NAME [options]
EOS
    end

    def add_options!(opts)
      view_add_options!(opts)
    end

    def extract_options
    end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
intelitiva-rugui-1.2.0 rugui_generators/pack/pack_generator.rb
intelitiva-rugui-1.3.0 rugui_generators/pack/pack_generator.rb
intelitiva-rugui-1.3.1 rugui_generators/pack/pack_generator.rb
intelitiva-rugui-1.3.2 rugui_generators/pack/pack_generator.rb
rugui-1.3.3 rugui_generators/pack/pack_generator.rb
rugui-1.3.1 rugui_generators/pack/pack_generator.rb
rugui-1.3.2 rugui_generators/pack/pack_generator.rb
rugui-1.3.0 rugui_generators/pack/pack_generator.rb
rugui-1.2.2 rugui_generators/pack/pack_generator.rb