Sha256: e55e9d66d8a116247d4babb4e6fe21ca5a40140ecb0d51d17a860b02352b0752

Contents?: true

Size: 693 Bytes

Versions: 68

Compression:

Stored size: 693 Bytes

Contents

require_relative '../modules/applet_helper'
require_relative '../modules/git_helper'
require_relative '../modules/provisioning_helper'
require_relative '../modules/exceptions'

class SlaveStarter
    include AppletHelper
    include GitHelper
    include ProvisioningHelper

    def start
        raise NotInitialized unless should_start_slave
        
        # Git
        hook_thread = set_git_hook do
            remove_local_provisioning_profiles
            copy_jenkins_provisioning_profiles
        end
        
        # Applet
        start_slave
        
        hook_thread.join
        
        true
    end
    
    def stop
        stop_applets
        
        true
    end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
nixenvironment-0.0.88 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.86 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.84 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.83 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.82 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.81 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.80 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.79 lib/nixenvironment/jenkins/slave/slave_starter.rb