Class: Dromedary

Inherits:
Object
  • Object
show all
Includes:
DromedaryInitializer
Defined in:
lib/dromedary.rb

Class Method Summary collapse

Methods included from DromedaryInitializer

already_initialized?, create_directory, create_directory_or_file, create_file, cucumber_initialized?, dromedary_after_hooks, dromedary_afterstep_hooks, dromedary_before_hooks, dromedary_config_content, dromedary_config_structure, dromedary_hooks_content, dromedary_hooks_structure, report_already_initialized, report_creating, report_exists, report_no_cucumber_found, report_updating, run, update_file

Class Method Details

.init(options) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/dromedary.rb', line 7

def self.init(options)
  case options
  when '--init'
    show_init_msg
    initialize_project
  else
    welcome
  end
end

.initialize_projectObject



22
23
24
# File 'lib/dromedary.rb', line 22

def self.initialize_project
  DromedaryInitializer.run
end

.show_init_msgObject



26
27
28
# File 'lib/dromedary.rb', line 26

def self.show_init_msg
  puts 'Initializes folder structure and generates files for Dromedary reporting'
end

.welcomeObject



17
18
19
20
# File 'lib/dromedary.rb', line 17

def self.welcome
  puts 'Hello world! I am a wild Dromedary!'
  puts 'If you like to take a ride, you will need to run "dromedary --init" first'
end