Class: DockerizeStack::Command
- Inherits:
-
Thor
- Object
- Thor
- DockerizeStack::Command
show all
- Includes:
- Thor::Actions, ThorActionsExtend
- Defined in:
- lib/dockerize_stack.rb
Constant Summary
ThorActionsExtend::CONFIG
Instance Method Summary
collapse
#fetch_template_variables, #run
Instance Method Details
#gatsby ⇒ Object
52
53
54
55
|
# File 'lib/dockerize_stack.rb', line 52
def gatsby
run(options, :gatsby)
render_all
end
|
#rails ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/dockerize_stack.rb', line 20
def rails
run(options, :rails)
all_file_paths.each do |file_name|
if file_name =~ %r{kubernetes/} && !@kubernetes
return false
end
template file_name, "#{@output_folder}/#{file_name.gsub('.erb', '')}"
end
puts 'Update your database.yml based in database-docker.yml'
end
|
#react ⇒ Object
39
40
41
42
|
# File 'lib/dockerize_stack.rb', line 39
def react
run(options, :react)
render_all
end
|
#strapi ⇒ Object
65
66
67
68
|
# File 'lib/dockerize_stack.rb', line 65
def strapi
run(options, :strapi)
render_all
end
|