lib/brick/models/project.rb
#create the service according to the service name

create the service according to the service name
create the service according to the service name
def run_services(service_name, enable_link=true)
        service = @services[service_name]  
        to_build = false
         if service.can_be_built?
           if service.image_exist? 
             if ::Brick::Config[:rebuild]
                to_build=true
              else
                puts "The image #{service.image_name} already exists!"
             end
           else
             to_build = true
           end
         end
         if to_build
           service.build nil, true, ::Brick::Config[:project_dir]
         end
        raise ServicesNotFoundException.new("service #{service_name} is not found in #{@config_file}") if service.nil?
        service.run enable_link
      end
def run_services ( service_name , enable_link = true ) service = @services [ service_name ] to_build = false if service . can_be_built? if service . image_exist? if :: Brick :: Config [ :rebuild ] to_build = true else puts "The image #{service.image_name} already exists!" end else to_build = true end end if to_build service . build nil , true , :: Brick :: Config [ :project_dir ] end raise ServicesNotFoundException . new ( "service #{service_name} is not found in #{@config_file}" ) if service . nil? service . run enable_link end
create the service according to the service name
create the service according to the service name
service_name
<not_specific>
enable_link
<not_specific>