Class: SdocAllGenerator

Inherits:
RubiGen::Base
  • Object
show all
Defined in:
lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb

Constant Summary collapse

DEFAULT_SHEBANG =
File.join(Config::CONFIG['bindir'],
Config::CONFIG['ruby_install_name'])

Instance Method Summary collapse

Constructor Details

#initialize(runtime_args, runtime_options = {}) ⇒ SdocAllGenerator

Returns a new instance of SdocAllGenerator.



5
6
7
8
9
10
11
# File 'lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb', line 5

def initialize(runtime_args, runtime_options = {})
  super
  usage if args.empty?
  @destination_root = File.expand_path(args.shift)
  @name = base_name
  extract_options
end

Instance Method Details

#manifestObject



13
14
15
16
17
18
19
20
21
# File 'lib/sdoc_all/generator/sdoc_all/sdoc_all_generator.rb', line 13

def manifest
  record do |m|
    m.directory ''
    BASEDIRS.each { |path| m.directory path }

    m.file_copy_each %w(Rakefile)
    m.file_copy_each %w(config.yml)
  end
end