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.108 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.107 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.106 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.105 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.104 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.103 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.102 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.101 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.100 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.99 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.98 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.97 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.96 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.95 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.94 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.93 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.92 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.91 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.90 lib/nixenvironment/jenkins/slave/slave_starter.rb
nixenvironment-0.0.89 lib/nixenvironment/jenkins/slave/slave_starter.rb