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.152 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.150 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.148 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.141 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.147 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.146 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.145 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.144 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.143 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.142 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.138.1 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.138 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.140 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.139 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.137 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.136 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.135 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.134 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.133 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.132 lib/nixenvironment/jenkins/slave/slave_starter.rb