Class: DaemonKit::Generators::NaniteAgentGenerator
- Inherits:
-
Base
show all
- Defined in:
- lib/generators/daemon_kit/nanite_agent/nanite_agent_generator.rb
Instance Attribute Summary
#behavior
Attributes included from Thor::Base
#options
Instance Method Summary
collapse
Methods inherited from Base
desc
#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 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_actors ⇒ Object
13
14
15
|
# File 'lib/generators/daemon_kit/nanite_agent/nanite_agent_generator.rb', line 13
def create_actors
directory 'lib'
end
|
#create_config ⇒ Object
9
10
11
|
# File 'lib/generators/daemon_kit/nanite_agent/nanite_agent_generator.rb', line 9
def create_config
directory 'config'
end
|
#create_libexec ⇒ Object
17
18
19
|
# File 'lib/generators/daemon_kit/nanite_agent/nanite_agent_generator.rb', line 17
def create_libexec
directory 'libexec'
end
|
#update_gemfile ⇒ Object
5
6
7
|
# File 'lib/generators/daemon_kit/nanite_agent/nanite_agent_generator.rb', line 5
def update_gemfile
append_file 'Gemfile', "gem 'nanite'\n"
end
|