Class: DaemonKit::Generators::CucumberGenerator
Instance Attribute Summary
#behavior
Attributes included from Thor::Base
#options
Instance Method Summary
collapse
#action, #append_file, #apply, #chmod, #copy_file, #create_file, #destination_root, #destination_root=, #directory, #empty_directory, #find_in_source_paths, #get, #gsub_file, #in_root, included, #initialize, #inject_into_class, #inject_into_file, #inside, #prepend_file, #relative_to_original_destination_root, #remove_file, #run, #run_ruby_script, #source_paths, #template, #thor
Methods inherited from Base
desc
Methods inherited from Thor::Group
class_options_help, desc, get_options_from_invocations, handle_argument_error, help, invocation_blocks, invocations, invoke, invoke_from_option, printable_tasks, remove_invocation, start
Methods included from Thor::Base
included, #initialize, register_klass_file, shell, shell=, subclass_files, subclasses
Instance Method Details
#create_environment ⇒ Object
14
15
16
|
# File 'lib/generators/daemon_kit/cucumber/cucumber_generator.rb', line 14
def create_environment
template 'config/environments/cucumber.rb'
end
|
#create_features ⇒ Object
10
11
12
|
# File 'lib/generators/daemon_kit/cucumber/cucumber_generator.rb', line 10
def create_features
directory 'features'
end
|
#create_script ⇒ Object
22
23
24
25
26
27
|
# File 'lib/generators/daemon_kit/cucumber/cucumber_generator.rb', line 22
def create_script
copy_file 'script/cucumber' do |content|
"#{shebang}\n" + content
end
chmod 'script', 0755, :verbose => false
end
|
#create_tasks ⇒ Object
18
19
20
|
# File 'lib/generators/daemon_kit/cucumber/cucumber_generator.rb', line 18
def create_tasks
copy_file 'tasks/cucumber.rake'
end
|