Class: Rugular::Server

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rugular/tasks/server.rb

Instance Method Summary collapse

Instance Method Details

#add_template_application_sass_fileObject



15
16
17
18
19
20
# File 'lib/rugular/tasks/server.rb', line 15

def add_template_application_sass_file
  FileUtils.cp(
    "#{lib_directory}/templates/server/application.sass",
    "#{destination_root}/.application.sass"
  )
end

#start_serverObject



22
23
24
25
26
27
# File 'lib/rugular/tasks/server.rb', line 22

def start_server
  system(
    "bundle exec foreman start --color --root=#{destination_root} " \
    "--procfile=#{rugular_procfile}"
  )
end