Class: Rugular::Server
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Rugular::Server
- Includes:
- Thor::Actions
- Defined in:
- lib/rugular/tasks/server.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failue? ⇒ Boolean
8 |
# File 'lib/rugular/tasks/server.rb', line 8 def self.exit_on_failue?; true end |
Instance Method Details
#check_for_rugular_directory ⇒ Object
9 10 11 12 13 14 |
# File 'lib/rugular/tasks/server.rb', line 9 def check_for_rugular_directory ::Rugular::AppChecker.check_for_rugular_directory( task_name: self.class.name, root_directory: destination_root ) end |
#start_server ⇒ Object
21 22 23 24 25 26 |
# File 'lib/rugular/tasks/server.rb', line 21 def start_server system( "bundle exec foreman start --color --root=#{destination_root} " \ "--procfile=#{rugular_procfile}" ) end |