Class: Zync::Generators::AppGenerator
Instance Method Summary
collapse
Methods inherited from Base
base_root, default_source_root, source_root
Instance Method Details
#create_app_files ⇒ Object
88
89
90
|
# File 'lib/zync-gen/generators/app.rb', line 88
def create_app_files
build(:app)
end
|
#create_config_files ⇒ Object
92
93
94
|
# File 'lib/zync-gen/generators/app.rb', line 92
def create_config_files
build(:config)
end
|
#create_lib_files ⇒ Object
96
97
98
|
# File 'lib/zync-gen/generators/app.rb', line 96
def create_lib_files
build(:lib)
end
|
#create_log_files ⇒ Object
100
101
102
|
# File 'lib/zync-gen/generators/app.rb', line 100
def create_log_files
build(:log)
end
|
#create_root ⇒ Object
77
78
79
80
81
|
# File 'lib/zync-gen/generators/app.rb', line 77
def create_root
self.destination_root = File.expand_path(name, destination_root)
empty_directory '.'
FileUtils.cd(destination_root)
end
|
#create_root_files ⇒ Object
83
84
85
86
|
# File 'lib/zync-gen/generators/app.rb', line 83
def create_root_files
build(:configru)
build(:gemfile)
end
|
#create_script_files ⇒ Object
104
105
106
|
# File 'lib/zync-gen/generators/app.rb', line 104
def create_script_files
build(:script)
end
|
#create_tmp_files ⇒ Object
108
109
110
|
# File 'lib/zync-gen/generators/app.rb', line 108
def create_tmp_files
build(:tmp)
end
|
#create_vendor_files ⇒ Object
112
113
114
|
# File 'lib/zync-gen/generators/app.rb', line 112
def create_vendor_files
build(:vendor)
end
|