Class: ChemistryKit::CLI::BeakerGenerator

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

Overview

Creates a starting beaker from a template

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



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

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

Instance Method Details

#create_lib_fileObject



16
17
18
# File 'lib/chemistrykit/cli/beaker.rb', line 16

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