Class: ChemistryKit::CLI::New

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

Overview

Creates a new test harness

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



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

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

Instance Method Details

#create_projectObject



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

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

#notifyObject



21
22
23
# File 'lib/chemistrykit/cli/new.rb', line 21

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