Module: Luban::Deployment::Helpers::Generator::Application
- Includes:
- Base
- Defined in:
- lib/luban/deployment/helpers/generator.rb
Instance Method Summary
collapse
Methods included from Utils
#copy_file, #mkdir, #render_file
Instance Method Details
#application_class_name ⇒ Object
126
127
128
|
# File 'lib/luban/deployment/helpers/generator.rb', line 126
def application_class_name
"#{project}:#{application}".camelcase
end
|
#application_skeleton_path ⇒ Object
118
119
120
|
# File 'lib/luban/deployment/helpers/generator.rb', line 118
def application_skeleton_path
@application_skeleton_path ||= skeletons_path.join('application')
end
|
#application_target_path ⇒ Object
122
123
124
|
# File 'lib/luban/deployment/helpers/generator.rb', line 122
def application_target_path
@application_target_path ||= apps_path.join(application)
end
|
#create_application_skeleton ⇒ Object
130
131
132
133
|
# File 'lib/luban/deployment/helpers/generator.rb', line 130
def create_application_skeleton
puts "Creating skeleton for #{stage} application #{application_class_name}"
copy_dir(application_skeleton_path, application_target_path, stages: [stage])
end
|