Class: Circus::Profiles::MakeBase

Inherits:
Base
  • Object
show all
Defined in:
lib/circus/profiles/make_base.rb

Direct Known Subclasses

Shell

Instance Method Summary collapse

Methods inherited from Base

#cleanup_after_deploy, #extra_dirs, #initialize, #mark_for_persistent_run?, #package_base_dir?, #package_for_deploy, #package_for_dev, #requirements, #supported_for_development?

Constructor Details

This class inherits a constructor from Circus::Profiles::Base

Instance Method Details

#prepare_for_deploy(logger, overlay_dir) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/circus/profiles/make_base.rb', line 11

def prepare_for_deploy(logger, overlay_dir)
  # Build the application
  if File.exists?(File.join(@dir, 'Makefile'))
    logger.info("Compiling #{@name}")
    run_external(logger, 'Compile application', "cd #{@dir}; make")
  end
end

#prepare_for_dev(logger, run_dir) ⇒ Object

Development preparation is the same as deployment



7
8
9
# File 'lib/circus/profiles/make_base.rb', line 7

def prepare_for_dev(logger, run_dir)
  prepare_for_deploy(logger, run_dir)
end