Sha256: 46fb764e734c88236f283f882362c45a7573f8b6355270ef8e3f8ac1da8b01ab

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

#
# Author:: Philip (flip) Kromer (<flip@infochimps.com>)
# Copyright:: Copyright (c) 2011 Infochimps, Inc
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require File.expand_path(File.dirname(__FILE__)+"/knife_common.rb")
require File.expand_path(File.dirname(__FILE__)+"/generic_command.rb")

class Chef
  class Knife
    class ClusterStart < Ironfan::Script
      import_banner_and_options(Ironfan::Script)

      def relevant?(server)
        server.startable?
      end

      def perform_execution(target)
        section("Starting machines")
        super(target)
        section("Announcing Chef nodes as started")
        target.send(:delegate_to_servers, :announce_as_started)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ironfan-3.1.0.rc1 lib/chef/knife/cluster_start.rb