Class: ChemistryKit::CLI::BeakerGenerator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/chemistrykit/cli/beaker.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/chemistrykit/cli/beaker.rb', line 9

def self.source_root
  File.join(File.dirname(File.expand_path(__FILE__)), '../../templates/')
end

Instance Method Details

#create_lib_fileObject



13
14
15
# File 'lib/chemistrykit/cli/beaker.rb', line 13

def create_lib_file
  template('beaker.tt', "./beakers/#{name}_beaker.rb")
end