Class: Dromedary
Class Method Summary
collapse
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_project ⇒ Object
.show_init_msg ⇒ Object
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
|
.welcome ⇒ Object
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
|