Class: ChemistryKit::CLI::New

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



10
11
12
# File 'lib/chemistrykit/cli/new.rb', line 10

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

Instance Method Details

#create_projectObject



14
15
16
# File 'lib/chemistrykit/cli/new.rb', line 14

def create_project
  directory "templates/chemistrykit", File.join(Dir.getwd, name)
end

#notifyObject



18
19
20
# File 'lib/chemistrykit/cli/new.rb', line 18

def notify
  say "Your test harness has been created."
end