Class: CukeSalad::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/cukesalad/cli.rb

Defined Under Namespace

Classes: Structure

Class Method Summary collapse

Class Method Details

.configure_existing_project(project = nil) ⇒ Object



10
11
12
13
14
# File 'lib/cukesalad/cli.rb', line 10

def self.configure_existing_project project=nil
  `cd #{project}` if project
  structure = Structure.new
  structure.setup_cucumber_with_cukesalad
end

.create_new_project(project) ⇒ Object



5
6
7
8
# File 'lib/cukesalad/cli.rb', line 5

def self.create_new_project project
  structure = Structure.new
  structure.setup project
end