Class: ChemistryKit::CLI::BeakerGenerator
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- ChemistryKit::CLI::BeakerGenerator
- Includes:
- Thor::Actions
- Defined in:
- lib/chemistrykit/cli/beaker.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/chemistrykit/cli/beaker.rb', line 9 def self.source_root File.join(File.dirname(File.(__FILE__)), '../../templates/') end |
Instance Method Details
#create_lib_file ⇒ Object
13 14 15 |
# File 'lib/chemistrykit/cli/beaker.rb', line 13 def create_lib_file template('beaker.tt', "./beakers/#{name}_beaker.rb") end |