Class: DockerizeStack::Command

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions, ThorActionsExtend
Defined in:
lib/dockerize_stack.rb

Constant Summary

Constants included from ThorActionsExtend

ThorActionsExtend::CONFIG

Instance Method Summary collapse

Methods included from ThorActionsExtend

#fetch_template_variables, #run

Instance Method Details

#gatsbyObject



52
53
54
55
# File 'lib/dockerize_stack.rb', line 52

def gatsby
  run(options, :gatsby)
  render_all
end

#railsObject



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

#reactObject



39
40
41
42
# File 'lib/dockerize_stack.rb', line 39

def react
  run(options, :react)
  render_all
end

#strapiObject



65
66
67
68
# File 'lib/dockerize_stack.rb', line 65

def strapi
  run(options, :strapi)
  render_all
end