Class: SdocAllGenerator
- Inherits:
-
RubiGen::Base
- Object
- RubiGen::Base
- SdocAllGenerator
- 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
-
#initialize(runtime_args, runtime_options = {}) ⇒ SdocAllGenerator
constructor
A new instance of SdocAllGenerator.
- #manifest ⇒ Object
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, = {}) super usage if args.empty? @destination_root = File.(args.shift) @name = base_name end |
Instance Method Details
#manifest ⇒ Object
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 |